mbedtls/ChangeLog.d
Nayna Jain d696e7d91e programs/ssl: Fix incorrect EOF check in ssl_context_info.c
In `read_next_b64_code()`, the result of fgetc() is stored into a char,
but later compared against EOF, which is generally -1.  On platforms
where char is unsigned, this generates a compiler warning/error that the
comparison will never be true (causing a build failure).  The value will
never match, with the function ultimately bailing with a "Too many bad
symbols are detected" error.

On platforms with signed char, EOF is detected, but a file containing a
0xFF character will causes a premature end of file exit of the loop.

Fix this by changing the result to an int.

Fixes #3794.

Signed-off-by: Nayna Jain <nayna@linux.ibm.com>
Signed-off-by: David Brown <david.brown@linaro.org>
2020-10-20 13:31:32 -06:00
..
_GNU_SOURCE-redefined.txt Fix the build when _GNU_SOURCE is defined to a non-empty value 2020-10-01 11:27:17 +02:00
00README.md 2.24.0 is still covered by the old policy 2020-10-01 00:35:49 +02:00
add_cipher_transparent_driver.txt Add changelog entry 2020-09-14 16:31:58 +02:00
add_sign_verify_keygen_transparent_driver.txt Added changelog 2020-09-04 14:22:27 +02:00
add-aes-ecb-to-psa.txt Style and language fixes 2020-08-25 12:32:22 +02:00
adjusting sliding_window_size_PR3592.txt adding entry file to ChangeLog.d for PR3592 2020-09-07 13:08:10 +02:00
android-socklen_t.txt Use socklen_t on Android and other POSIX-compliant system 2020-09-30 16:53:37 +08:00
bugfix_3524.txt fix(programs/psa): commit python3 generated file 2020-09-24 20:57:46 -07:00
bugfix_3794.txt programs/ssl: Fix incorrect EOF check in ssl_context_info.c 2020-10-20 13:31:32 -06:00
bugfix_PR3294.txt Updates to cleanup fixes for #3294 2020-08-24 08:29:39 -07:00
fix-rsa-blinding.txt Restore retry in rsa_prepare_blinding() 2020-09-25 08:43:57 -05:00
psa_error_invalid_argument_for_invalid_cipher_input_sizes.txt Update changelog entry to mention PSA API compliance 2020-10-01 16:03:10 +02:00