Logo
Explore Help
Sign In
mirror/json-c
1
0
Fork 0
You've already forked json-c
mirror of https://github.com/json-c/json-c.git synced 2026-03-19 21:19:06 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
master
json-c/tests/test_strerror.expected

3 lines
22 B
Plaintext
Raw Permalink Normal View History

Properly format errnos in _json_c_strerror The function _json_c_strerror does not properly format unknown errnos. The int to ascii loop ignores the leading digit if the number can be divided by 10 and if an errno has been formatted, shorter errnos would not properly terminate the newly created string, showing the ending numbers of the previous output. A test case has been added to show these effects. Since this function has been introduced for tests, the effect of this on real life code is basically non-existing. First an environment variable has to be set to activate this strerror code and second an unknown errno would have to be encountered.
2020-08-22 11:35:50 +02:00
ERRNO=10000
ERRNO=999
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 48ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API 粤ICP备2023071974号-5