3 ms·
In at least some locales tolower segfaults under that condition, in glibc at least. (before anyone says that ‘in reality it’s probably fine’)
by jleahy 6y ago
In at least some locales tolower segfaults under that condition, in glibc at least.
(before anyone says that ‘in reality it’s probably fine’)
- parenthesis 6y agoI would love to know an example of that.
- gpanders 6y agohttps://drewdevault.com/2020/09/25/A-story-of-two-libcs.html https://drewdevault.com/2020/09/25/A-story-of-two-libcs.html
- roca 6y agoThat quotes a glibc comment "we also support negative `signed char' values for broken old programs" which means the OP code is in fact going to behave OK with glibc, providing that "support for broken old programs" is never removed.