Hacker News new | ask | show | jobs
by benhoyt 1922 days ago
Thanks. I re-read this paragraph from the original article and it makes more sense now:

> use a zone mapping table, mapping between zone index integers and zone name strings. That’s what the Go standard library does internally. But then we’re left susceptible to an attack where an adversary forces us to parse a bunch of IP addresses with scopes and we forever a bloat a mapping table that we don’t have a good opportunity to ever shrink. The Go standard library doesn’t need to deal with this, as it only ever maps interfaces that exist on the machine and doesn’t expose the integers to users in representations; its net.IPAddr.Zone field is a string.

1 comments

Whoops, I just fixed that typo too. (not yet deployed)