diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-02-02 22:54:17 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-02-02 22:54:17 -0800 |
commit | a7d3edcff56ee0faa8355ceaea7bc23c2f2e2aa7 (patch) | |
tree | 1696c8ed5bd8d5da2bda03f9a0a78507139bdfa0 /lib.h | |
parent | 905b074cea7303553777e169529efc8aeccdc35a (diff) | |
download | txr-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