Fix buffer overflow
Co-authored-by: Ezequiel Bellver <ebellver@itba.edu.ar> Co-authored-by: Juan Barmasch <jbarmasch@itba.edu.ar>
This commit is contained in:
parent
cf7a3e3f21
commit
0d67b3a33e
|
@ -62,7 +62,7 @@ struct parser_event * parser_feed(struct parser *p, const uint8_t c) {
|
||||||
return &p->e1;
|
return &p->e1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const unsigned classes[0xFF] = {0x00};
|
static const unsigned classes[0xFF + 1] = {0x00};
|
||||||
|
|
||||||
const unsigned * parser_no_classes(void) {
|
const unsigned * parser_no_classes(void) {
|
||||||
return classes;
|
return classes;
|
||||||
|
|
Loading…
Reference in New Issue