Re: [PATCH 1/8] misc: fix invalid character recongition in strto*l

2016-08-10 Thread Vladimir 'phcoder' Serbinenko
Fixed, thank you for reporting. I also added a unit test for this. I didn't use your solution and instead option for a more readable one Le Wed, Aug 3, 2016 à 8:36 AM, Michael Chang a écrit : > From: Aaron Miller > > Would previously allow digits larger

[PATCH 1/8] misc: fix invalid character recongition in strto*l

2016-08-03 Thread Michael Chang
From: Aaron Miller Would previously allow digits larger than the base and didn't check that subtracting the difference from 0-9 to lowercase letters for characters larger than 9 didn't result in a value lower than 9, which allowed the parses: ` = 9, _ = 8, ^ = 7, ] = 6, \ =