summaryrefslogtreecommitdiffstats
path: root/strtod.c
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-07-10 21:37:29 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-10 12:44:51 -0700
commit6b4dd8d597f4aa52599305dfaf5af19054b4422c (patch)
tree6179e4e59a8404f949d8957d4cab7fb183457459 /strtod.c
parent9b8c1e195aae87a61bf9faf51e8b13e9a349094c (diff)
downloadsubsurface-6b4dd8d597f4aa52599305dfaf5af19054b4422c.tar.gz
Don't trust isspace() unless isascii() approves
We have seen isspace(0xC3) return true on windows so we need to do something about this. As a wise man said: Using "isspace()" and friends on anything but the 0-127 range is just fraught with danger, regardless of platform. We remedy this by checking that isascii() says that its a 7-bit ascii character, something isspace() knows how to handle Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'strtod.c')
0 files changed, 0 insertions, 0 deletions