diff options
author | 2021-08-14 18:35:42 +0200 | |
---|---|---|
committer | 2021-08-15 18:57:07 +0200 | |
commit | 855c9d4087f2aee9999482ff01b2f99fcade1405 (patch) | |
tree | 4d257f45100fb87513ea6bcf0a14dea81004d98e /src/osd/modules/file/posixsocket.cpp | |
parent | 57ddc51b52f53cc33bfe810beb5f38dabf73ab85 (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