mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
- Cap the token buffer position across chunked input so a selector spanning 511-byte reads cannot write past css_parser_t::buffer. - Reject selector names longer than MAX_NAME_LEN in css_selector_create() instead of writing past name[]. - Bound selector name composition in css_selector_collect_name() with explicit length checks. - Fix trim-left in css_parser_commit() reading buffer[pos] instead of buffer[i] and moving the wrong number of bytes. Fixes GHSA-v42w-m2h7-fm23.
libCSS
CSS (Cascading Style Sheet) parser and selection engine, providing CSS parsing and selection capabilities.