aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-12 21:29:28 +0000
committerDavid Robillard <d@drobilla.net>2011-05-12 21:29:28 +0000
commitf75d7c69bfc0da5e588d0ef44bd103eae610c8ea (patch)
tree3f29f407b7ab04ba285de54dd5ef7e731933003e
parentf07ed64923ab04fd4c608a17476e74e6271bc51d (diff)
downloadserd-f75d7c69bfc0da5e588d0ef44bd103eae610c8ea.tar.gz
serd-f75d7c69bfc0da5e588d0ef44bd103eae610c8ea.tar.bz2
serd-f75d7c69bfc0da5e588d0ef44bd103eae610c8ea.zip
Fix out of bounds array indexing.
git-svn-id: http://svn.drobilla.net/serd/trunk@177 490d8e77-9747-427b-9fa3-0b8f29cee8a0
-rw-r--r--src/reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reader.c b/src/reader.c
index 8804af8b..44910ddf 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -503,7 +503,7 @@ static inline SerdStatus
read_lcharacter(SerdReader* reader, Ref dest, SerdNodeFlags* flags)
{
const uint8_t c = peek_byte(reader);
- uint8_t pre[3];
+ uint8_t pre[4];
switch (c) {
case '"':
peek_string(reader, pre, 4);