Version 0.9.2.#967
Merged
Merged
Conversation
d5b8ed8 to
82ec210
Compare
mtbChef
pushed a commit
to mtbChef/njs
that referenced
this pull request
Oct 2, 2025
build/src/njs_object.dep -MT build/src/njs_object.o \ src/njs_object.c In file included from src/njs_main.h:18, from src/njs_object.c:8: In function ‘njs_utf8_copy’, inlined from ‘njs_object_enumerate_string’ at src/njs_object.c:769:21: src/njs_utf8.h:115:20: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] 115 | *dst++ = c; | ~~~~~~~^~~ src/njs_object.c: In function ‘njs_object_enumerate_string’: src/njs_object.c:719:24: note: at offset 4 into destination object ‘buf’ of size 4 719 | u_char buf[4], *c; | ^~~ In function ‘njs_utf8_copy’, inlined from ‘njs_object_enumerate_string’ at src/njs_object.c:769:21: src/njs_utf8.h:115:20: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=] GCC-15 does not know that the loop in njs_utf8_copy() is bounded because the input is a valid UTF-8 here. This fixes nginx#967 issue on Github.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.