summaryrefslogtreecommitdiffstats
path: root/src/osd/modules/file/posixsocket.cpp
diff options
context:
space:
mode:
author yz70s <yz70s@users.noreply.github.com>2021-08-14 18:35:42 +0200
committer yz70s <yz70s@users.noreply.github.com>2021-08-15 18:57:07 +0200
commit855c9d4087f2aee9999482ff01b2f99fcade1405 (patch)
tree4d257f45100fb87513ea6bcf0a14dea81004d98e /src/osd/modules/file/posixsocket.cpp
parent57ddc51b52f53cc33bfe810beb5f38dabf73ab85 (diff)
divtlb.cpp: remove a crash caused by the modulus operator
In the original code all values are signed integers, so m_dynindex would overflow and become negative, then the modulus of a negative value by a positive one would generate a negative result and finally the next array read would make the program crash. Also the maximum value plus one of m_dynindex is not generally a multiple of m_dynamic and this would cause a jump in the values of liveindex.
Diffstat (limited to 'src/osd/modules/file/posixsocket.cpp')
0 files changed, 0 insertions, 0 deletions