Phil Turnbull 76f96c5979
Correctly cast name_length
`buffer[i++]` is a `signed char` so this cast does not correctly handle
negative values. If a custom tag has a length greater than 128 then
`buffer[i++]` is negative and so the `(uint16_t)` cast will cast it to a large
unsigned integer. This causes an out-of-bound read when reading the tag name.

We need to cast `name_length` to a `uint8_t` first, then widen to a `uint16_t`.
2019-02-26 12:05:01 -05:00
2019-02-26 12:05:01 -05:00
2018-06-12 10:52:43 -07:00
2019-02-19 11:28:15 -08:00
2018-06-11 16:59:22 -07:00
2018-06-11 16:59:22 -07:00
2019-02-19 11:28:15 -08:00
2018-06-11 17:22:50 -07:00

tree-sitter-html

Build Status Build status

HTML grammar for tree-sitter.

References

Description
No description provided
Readme
Languages
C++ 48.8%
C 17.9%
Makefile 12.2%
Rust 9.5%
JavaScript 9.3%
Other 2.3%