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.
25 lines
519 B
C
25 lines
519 B
C
/*
|
|
* lib/css/tests/test.h
|
|
*
|
|
* Copyright (c) 2023-2026, Liu Chao <hello@lcui.dev> All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
* This file is part of LCUI, distributed under the MIT License found
|
|
* in the LICENSE.TXT file in the root directory of this source tree.
|
|
*/
|
|
|
|
void test_css_keywords(void);
|
|
|
|
void test_css_value(void);
|
|
|
|
void test_css_computed(void);
|
|
|
|
void test_css_text_decoration(void);
|
|
|
|
void test_css_inheritance(void);
|
|
|
|
void test_css_cursor(void);
|
|
|
|
void test_css_parser_security(void);
|