Three potential issues in jsoncons #366
Replies: 1 comment 1 reply
-
Regarding (1), it's just a buffer of 100 chars, passed to another function that needs a temporary work space, initialization would serve no purpose, one initial value is as good as any other, they're never examined. We could initialize Regarding (2), there is no resource leak in a |
Beta Was this translation helpful? Give feedback.
-
Hello experts,
Based on the static coding analysis for jsoncons, it seems that the following issues need your double check.
line 366: char buffer[100]; it is not initialized.
line 433: char buffer[100]; it is not initialized.
line 211: The constructor allocates field data_ of jsoncons::basic_bigint<std::allocator >::dynamic_storage but there is no destructor. Resource leak.
Could you please check if it has the potential risk. Thanks for your feedback in advance.
Beta Was this translation helpful? Give feedback.
All reactions