Closed ac000 closed 5 days ago
@pkillarjun
I can't add you as a reviewer, but could you check it anyway and just comment if you're OK with it?
I've kept the link to the oss-fuzz report in, but could you confirm whether this bug report is publicly accessible or not (no point having it in the commit message if it's not...)
Cheers, Andrew
I can't add you as a reviewer, but could you check it anyway and just comment if you're OK with it?
Ok, and this is much better.
I've kept the link to the oss-fuzz report in, but could you confirm whether this bug report is publicly accessible or not (no point having it in the commit message if it's not...)
The report will not be made public until 90 days have passed or the issue is fixed.
$ git range-diff efdd5540...4c99cb43
1: efdd5540 ! 1: 4c99cb43 tstr, conf: Ensure error strings are nul-terminated
@@ Commit message
default nxt_sprintf() doesn't nul-terminate, you must use the '%Z'
specifier to signify a '\0' at the end of the string.
- Link: <https://github.com/google/oss-fuzz>
- Link: <https://oss-fuzz.com/testcase-detail/5545917827055616>
+ Signed-off-by: Arjun <pkillarjun@protonmail.com>
Co-developed-by: Zhidao HONG <z.hong@f5.com>
Signed-off-by: Zhidao HONG <z.hong@f5.com>
+ Link: <https://github.com/google/oss-fuzz>
+ Link: <https://oss-fuzz.com/testcase-detail/5545917827055616>
Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
- Signed-off-by: Arjun <pkillarjun@protonmail.com>
[ Commit message/subject - Andrew ]
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
$ git range-diff 4c99cb43...8e254a4d
1: 4c99cb43 ! 1: 8e254a4d tstr, conf: Ensure error strings are nul-terminated
@@ Commit message
Co-developed-by: Zhidao HONG <z.hong@f5.com>
Signed-off-by: Zhidao HONG <z.hong@f5.com>
Link: <https://github.com/google/oss-fuzz>
- Link: <https://oss-fuzz.com/testcase-detail/5545917827055616>
Reviewed-by: Andrew Clayton <a.clayton@nginx.com>
[ Commit message/subject - Andrew ]
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
This issue was found with oss-fuzz.
The issue was in nxt_tstr_test() where we create an error message with nxt_sprintf(), where this error message is then later used with the '%s' format specifier which expects a nul-terminated string, but by default nxt_sprintf() doesn't nul-terminate, you must use the '%Z' specifier to signify a '\0' at the end of the string.