diff options
| author | Courtney Goeltzenleuchter <courtneygo@google.com> | 2016-12-21 16:24:34 -0700 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtneygo@google.com> | 2016-12-21 16:35:36 -0700 |
| commit | 00a87deb5fc33be4512b71725d2593555de79171 (patch) | |
| tree | 07e400adc941d117641c3f71706b361a5e98696f /loader/dev_ext_trampoline.c | |
| parent | bee1d3a4e8c0d48dc5f77c26963e792f4c3b306c (diff) | |
| download | usermoji-00a87deb5fc33be4512b71725d2593555de79171.tar.xz | |
loader: Fix validation error
The string length validation will not detect strings
that exceed the max length.
For example, when i = max_length-1 and utf8[i] is a valid
character (>= 0x20 and < 0x7f) no error is thrown and
the next iteration will end the loop.
This change extends the loop and the if check to
catch this issue.
Diffstat (limited to 'loader/dev_ext_trampoline.c')
0 files changed, 0 insertions, 0 deletions
