[lvm-devel] [LVM2 PATCH] Add overflow check to find_config_int()
Jun'ichi Nomura
j-nomura at ce.jp.nec.com
Thu Aug 9 17:56:07 UTC 2007
find_config_int() and find_config_tree_int() are the function
to search throught the config tree and return the found value
or given default on failure.
Internally, the values are int64_t but implicitly casted to int
on return.
Though I think it doesn't matter in realistic configs,
it's better to check them and leave explicit log message.
Thanks,
--
Jun'ichi Nomura, NEC Corporation of America
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lvm2-config-find-int-check-overflow.patch
Type: text/x-patch
Size: 1529 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/lvm-devel/attachments/20070809/0e47d9e4/attachment.bin>
More information about the lvm-devel
mailing list