<boring_maths> All borders are
infinitely long </boring_maths>
This refers to the shoreline paradox. If you have any interest in mathematics it's really not boring. Regardless, it doesn't apply.
Georg Cantor proved that infinities are not all the same size. You can argue that the infinitely long Brazil border is longer than the other infinitely long borders but I suspect this doesn't apply. I thought I would mention it anyway if anyone wants to look it up.
More relevant is the fact that real world shorelines are not fractal and have a finite length. Even if you choose to go sub-atomic, you will eventually get down to planck length distances between points. From this, you can get a definitive length of the coastline.
Finally, the shoreline paradox only applies to, errr, shorelines. Normal people don't bother with any of that fractal nonsense so when they make land borders they generally just make a bunch of normal lines between a series of points.