diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-11-15 11:59:03 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-11-15 11:59:03 +0300 |
commit | 08e0082e070354919de9584a8d26436a1dadeac0 (patch) | |
tree | 591625fc491ae35fe3c249b6bbfd2431ac5d4da9 /src/test/nxt_lvlhsh_test.c | |
parent | ed8bfc669f0c6ac2b7cb367f6adcdf756b2f6cca (diff) | |
download | unit-08e0082e070354919de9584a8d26436a1dadeac0.tar.gz unit-08e0082e070354919de9584a8d26436a1dadeac0.tar.bz2 |
Fixed discovering of modules on 64-bit big-endian systems.
The nxt_conf_map_object() function used nxt_int_t for NXT_CONF_MAP_INT, which
was 8 bytes long on 64-bit systems.
But the nxt_port_main_start_worker_handler() used it to map into the int field
of the nxt_common_app_conf_t structure, which was 4 bytes. As the result, on
a 64-bit big-endian system all the meaningful module type numbers were assigned
into the gap above the "type" field.
The bug was discovered on IBM/S390x.
Diffstat (limited to 'src/test/nxt_lvlhsh_test.c')
0 files changed, 0 insertions, 0 deletions