Skip to contentSkip to conversation

Add overflow check to find_config_int()

PATCH New Jun'ichi Nomura 1 participant 1 message Aug 9, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add overflow check to find_config_int()

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,

Signature · 8 lines
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>