Skip to content

fix: reject invalid image resource ids - #5

Open
tonycoder-hub wants to merge 1 commit into
openharmony:masterfrom
tonycoder-hub:fix/parse-resource-image-id
Open

fix: reject invalid image resource ids#5
tonycoder-hub wants to merge 1 commit into
openharmony:masterfrom
tonycoder-hub:fix/parse-resource-image-id

Conversation

@tonycoder-hub

Copy link
Copy Markdown

Validate resource identifiers with std::from_chars before assigning them to uint32_t.

Malformed or overflowing numeric resource ids now return false without throwing from the image loader.

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