Hello all,

attached is proposal for input validation which is purely numeric. It
introduces new functions in 'lib/helper.c' to handle conversion of
input and checks around. Main focus is on two functions - str2long()
and str2ulong(). The rest which, I'm sure is going to grow, is using
these two as a "base". The reason for doing it this way is it is
always strtol() and strtoul().
I don't know what else to add except *flows are checked as well as
invalid input. And it is based on previous discussions on this mailing
list.

Comments are, of course, more than welcome. I would like to commit
this soon, and move on.

Enjoy the rest of the weekend,
Z.

Attachment: helper.diff
Description: Binary data

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to