-
Type:
Task
-
Resolution: Fixed
-
Priority:
Trivial - P5
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
In _cbson_bson_to_dict and _cbson_decode_all we declare a Py_buffer like this:
Py_buffer view;
Coverity complains about this with: "var_decl: Declaring variable view without initializer."
This is not a bug because we always initialize the buffer with PyObject_GetBuffer before attempting to use it however it still could be a good idea to initialize it to 0, like this:
Py_buffer view = {0};
This change could help remove these false positives in Coverity.