Skip to content

fix: reject overflowing SVG RGB components - #6

Open
tonycoder-hub wants to merge 1 commit into
openharmony:masterfrom
tonycoder-hub:fix/parse-svg-rgb-components
Open

fix: reject overflowing SVG RGB components#6
tonycoder-hub wants to merge 1 commit into
openharmony:masterfrom
tonycoder-hub:fix/parse-svg-rgb-components

Conversation

@tonycoder-hub

Copy link
Copy Markdown

Parse SVG RGB components with a bounded from_chars conversion and reject values above 255.

Malformed or out-of-range color components now return false instead of relying on narrowing after stoi.

Signed-off-by: Tony Coder <407243179@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant