10000 Xslt: fixed handle vsnprintf return value by afonot · Pull Request #747 · nginx/nginx · GitHub
[go: up one dir, main page]

Skip to content

Xslt: fixed handle vsnprintf return value #747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

afonot
Copy link
@afonot afonot commented Jun 20, 2025
  1. The result of vsnprintf was cast to size_t, which could lead to a signed-to-unsigned overflow error.
  2. There was no handling for cases where vsnprintf returns a negative value, zero, or a value greater than NGX_MAX_ERROR_STR.

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
0