On Wed, May 27, 2015 at 03:31:15PM +0000, Emmanuel Dreyfus wrote: > Module Name: src > Committed By: manu > Date: Wed May 27 15:31:15 UTC 2015 > > Modified Files: > src/sbin/raidctl: raidctl.c > > Log Message: > Better sanity check numbers given to raidctl(8) > > Replace atoi(3) by strtol(3), and check that numbers are valid, > positive, and in int32_t range. The previous lack of check could > silently lead to the same serial being set to all RAID volumes > for instance because given numbers were bigger than INT_MAX. The > consequence is in an awful mess when RAIDframe would mix volumes...
strtoi? Joerg