diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2023-02-23 18:15:59 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2023-02-23 18:15:59 +0300 |
commit | 62b790c3318a56971e461a1e1f5b79197b604e89 (patch) | |
tree | f5bfd152bf290db4f60c1f20416790795154fc6f /src/os/win32/ngx_files.c | |
parent | 180be97d3157c6ed81efc0272dea6472241304c3 (diff) | |
download | nginx-62b790c3318a56971e461a1e1f5b79197b604e89.tar.gz nginx-62b790c3318a56971e461a1e1f5b79197b604e89.zip |
Win32: i386 now assumed when crossbuilding (ticket #2416).
Previously, NGX_MACHINE was not set when crossbuilding, resulting in
NGX_ALIGNMENT=16 being used in 32-bit builds (if not explicitly set to a
correct value). This in turn might result in memory corruption in
ngx_palloc() (as there are no usable aligned allocator on Windows, and
normal malloc() is used instead, which provides 8 byte alignment on
32-bit platforms).
To fix this, now i386 machine is set when crossbuilding, so nginx won't
assume strict alignment requirements.
Diffstat (limited to 'src/os/win32/ngx_files.c')
0 files changed, 0 insertions, 0 deletions