1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-29 22:49:41 +03:00
Files
postgres/src
Tom Lane 55c642c92b Fix unportable disregard of alignment requirements in RADIUS code.
The compiler is entitled to store a char[] local variable with no
particular alignment requirement.  Our RADIUS code cavalierly took such
a local variable and cast its address to a struct type that does have
alignment requirements.  On an alignment-picky machine this would lead
to bus errors.  To fix, declare the local variable honestly, and then
cast its address to char * for use in the I/O calls.

Given the lack of field complaints, there must be very few if any
people affected; but nonetheless this is a clear portability issue,
so back-patch to all supported branches.

Noted while looking at a Coverity complaint in the same code.
2017-03-26 17:35:35 -04:00
..
2017-03-14 13:45:48 -04:00
2017-02-06 16:49:02 -05:00
2017-03-14 13:45:48 -04:00
2014-05-06 12:12:18 -04:00
2017-02-06 11:34:24 +02:00