realloc() may move the array before the duplicate check returns
early, leaving *strlist pointing at freed memory. Assign the new
pointer before inspecting entries.
Refs GHSA-v42w-m2h7-fm23.
- 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.