Savagedlight / libifconfig

A C API to do most things done by the FreeBSD 'ifconfig' program today
Other
26 stars 7 forks source link

Potential usage of NULL reference after strdup() operations #32

Closed Savagedlight closed 8 years ago

Savagedlight commented 8 years ago

Go through everything(tm) and ensure the library handles failing strdup() calls properly. It should set error state and return a value indicating error if the strdup() failure is fatal.

kprovost commented 8 years ago

The same should be done for all of the (one!) calloc() calls. In ifconfig_open().