Fix unsigned integer overflow bug in spline tables
authorKevin Boyd <kevin44boyd@gmail.com>
Tue, 7 Jul 2020 15:07:07 +0000 (15:07 +0000)
committerM. Eric Irrgang <mei2n@virginia.edu>
Tue, 7 Jul 2020 15:07:07 +0000 (15:07 +0000)
commit967097dab57d2cf1585601e7fad91493ea71762e
tree322b05b3106058d69203bf8b8754497919800199
parentae5ff52e88db24925511862fddaa7a73748ceb55
Fix unsigned integer overflow bug in spline tables

Subtraction of two uints could lead to a huge positive rather than
a correct negative number. Found by UBSAN integer check (though
not technically undefined behavior)
src/gromacs/tables/quadraticsplinetable.cpp