summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-02-02 22:54:17 -0800
committerKaz Kylheku <kaz@kylheku.com>2012-02-02 22:54:17 -0800
commita7d3edcff56ee0faa8355ceaea7bc23c2f2e2aa7 (patch)
tree1696c8ed5bd8d5da2bda03f9a0a78507139bdfa0 /lib.h
parent905b074cea7303553777e169529efc8aeccdc35a (diff)
downloadtxr-a7d3edcff56ee0faa8355ceaea7bc23c2f2e2aa7.tar.gz
txr-a7d3edcff56ee0faa8355ceaea7bc23c2f2e2aa7.tar.bz2
txr-a7d3edcff56ee0faa8355ceaea7bc23c2f2e2aa7.zip
* utf8.c (utf8_from_uc, utf8_decode): Use upper case for hex constants.
If bytes decode to U+DCxx, treat this sequence as invalid. This way we can't be fooled by an attacker into accepting some U+DCxx which on output we will then convert to byte xx. (utf8_to_uc): Use upper case for hex constants.
Diffstat (limited to 'lib.h')
0 files changed, 0 insertions, 0 deletions