diff options
author | Vyacheslav Pedash <vyacheslav.pedash@globallogic.com> | 2020-07-28 22:52:05 +0300 |
---|---|---|
committer | Vyacheslav Pedash <vyacheslav.pedash@globallogic.com> | 2020-07-28 23:06:50 +0300 |
commit | 06bc056e71ce7056dd59c0004d8a9a26753c3f85 (patch) | |
tree | 558563e0bbbb802561eb54b88393535f9d75b078 /src/sms_config.h | |
parent | 5246748a8e5119dbca894e1eec3054a33acdc1c4 (diff) | |
download | sms-utils-06bc056e71ce7056dd59c0004d8a9a26753c3f85.tar.gz sms-utils-06bc056e71ce7056dd59c0004d8a9a26753c3f85.tar.bz2 sms-utils-06bc056e71ce7056dd59c0004d8a9a26753c3f85.zip |
MTX-3534 Fix crashes on 64-bit platforms
The char* pointer retruned from strrchr() function was assigned to int variable tmp.
On 64-bit platforms where pointer is 64-bit and int is 32-bit 2 bytes were lost and
consequent dereference of sliced pointer lead to segmentation fault. As a solution
the type of temporal variable is changed to char*.
Diffstat (limited to 'src/sms_config.h')
0 files changed, 0 insertions, 0 deletions