about summary refs log tree commit diff
path: root/include/netinet/ip_icmp.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-10-06 12:15:47 -0400
committerRich Felker <dalias@aerifal.cx>2016-10-06 18:47:57 -0400
commitaee6abb2400b9a955c2b41166db1c22f63ad42ef (patch)
tree09d65ed801ea04cb1c2251439b747be06ff944e2 /include/netinet/ip_icmp.h
parentc3edc06d1e1360f3570db9155d6b318ae0d0f0f7 (diff)
downloadmusl-aee6abb2400b9a955c2b41166db1c22f63ad42ef.tar.gz
musl-aee6abb2400b9a955c2b41166db1c22f63ad42ef.tar.xz
musl-aee6abb2400b9a955c2b41166db1c22f63ad42ef.zip
fix regexec with haystack strings longer than INT_MAX
we inherited from TRE regexec code that's utterly wrong with respect
to the integer types it's using. while it doesn't appear that
compilers are producing unsafe output, signed integer overflows seem
to happen, and regexec fails to find matches past offset INT_MAX.

this patch fixes the type of all variables/fields used to store
offsets in the string from int to regoff_t. after the changes, basic
testing showed that regexec can now find matches past 2GB (INT_MAX)
and past 4GB on x86_64, and code generation is unchanged on i386.
Diffstat (limited to 'include/netinet/ip_icmp.h')
0 files changed, 0 insertions, 0 deletions