Files
espeak-ng/src/libespeak-ng
Reece H. Dunn ebfa320956 Fix storing the line length in the hash chain.
The length is stored as the first byte in the output from
compile_line. As the data pointer is char, if char is signed then
length could be negative resulting in undefined behaviour. This
commit fixes the issue by reading and writing that byte as a
uint8_t.

This bug was caused by 2a00ca79f6.
Previously, the entries could only be a maximum of 128 bytes, and
would not be negative on platforms with signed chars. That
commit was made to support long emoji entries, especially for
non-Latin languages where the utf-8 representations could be
longer than 128 bytes.

This change also adds some documentation to make it clearer what
is going on. NOTE: The code should really be using actual struct
objects instead of writing to opaque char buffers.

Reported by Reef Turner <reef@nvaccess.org>
2017-07-26 20:44:27 +01:00
..
2017-05-02 18:40:16 +01:00
2017-05-02 18:40:16 +01:00
2017-05-02 18:40:16 +01:00
2016-01-18 07:01:19 +00:00
2017-05-02 18:40:16 +01:00
2017-05-02 18:40:16 +01:00
2017-05-02 18:40:16 +01:00
2017-05-02 18:40:16 +01:00
2017-05-02 18:40:16 +01:00
2017-05-02 18:40:16 +01:00