diff options
author | Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com> | 2017-06-26 09:55:41 -0300 |
---|---|---|
committer | Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com> | 2017-06-26 09:56:26 -0300 |
commit | d54bb9b1d3fd25779fba2c403003c5097ba9af73 (patch) | |
tree | e4529df0efdd8a7d0d23bf39a9fa87ac800fc1ea /ChangeLog | |
parent | d9660db223630591739f3313b46faa5687eaf075 (diff) | |
download | glibc-d54bb9b1d3fd25779fba2c403003c5097ba9af73.zip glibc-d54bb9b1d3fd25779fba2c403003c5097ba9af73.tar.gz glibc-d54bb9b1d3fd25779fba2c403003c5097ba9af73.tar.bz2 |
Prevent an implicit int promotion in malloc/tst-alloc_buffer.c
According to ISO C11, section 6.5.3.3 "Unary arithmetic operators", the
result of the ~ operator is the bitwise complement of its (promoted)
operand.
This can lead to a comparison of a char with another integer type.
Tested on powerpc, powerpc64 and powerpc64le.
* malloc/tst-alloc_buffer.c (test_misaligned): Cast to char
before comparing with another char.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2017-06-26 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com> + + * malloc/tst-alloc_buffer.c (test_misaligned): Cast to char + before comparing with another char. + 2017-06-25 Rical Jasan <ricaljasan@pacific.net> * manual/math.texi: Fix a grammatical error. |