summaryrefslogtreecommitdiffstats
path: root/filter.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-10-03 07:36:42 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-10-03 07:36:42 -0700
commit82bab2edc729eacf73c04290be7c68abe0baca0b (patch)
tree72fae219bfe6ff4f701f33b5eb545201135c55fd /filter.h
parent16272e28b07167948d93c5000a5fec16664f51d2 (diff)
downloadtxr-82bab2edc729eacf73c04290be7c68abe0baca0b.tar.gz
txr-82bab2edc729eacf73c04290be7c68abe0baca0b.tar.bz2
txr-82bab2edc729eacf73c04290be7c68abe0baca0b.zip
str-in6addr: bugfix: trailing zero in hex problem.
* stdlib/socket.c (sys:in6addr-condensed-text): The regular expression used in calculating zr is incorrect; the zero in it can match the trailing zero of a nonzero quad, when the intent is only to match zero quads. Hack: we represent zero quads by the character Z and use that for the matching and removal of the longest range of zero quads. Then we filter the Z back to 0.
Diffstat (limited to 'filter.h')
0 files changed, 0 insertions, 0 deletions