Bug InputFilterer::filter 'posint' data corruption

There is a bug in this version
V

vbresults

Guest
Whenever an empty value is supplied to a POSINT field, InputFilterer::cleanInternal converts it to a 1 instead of omitting it. NUM, UNUM, and FLOAT have the same problem in the appropriate setting when the value is out of range.

I understand it's clamping the values, but this is opaque and results in unexpected behavior. Type casting and mutation should be separate so the latter is explicit, or a descriptive exception should be thrown and marked with...

Read more

Continue reading...