You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GCC compiler warned about memcpy() to nullptr in CSD_HTFC::CSD_HTFC. It appears this was introduced with commit 7e43168.
It's not clear to me whether this bug would have caused a crash or merely have caused the delta encoding to be ineffective; and I don't know how to test my change.
(As a meta-comment, I noticed a number of places where a similar change would improve the code quality -- that is switch from using char* with malloc()/free() or new/delete instead of std::string or std::basic_string or possibly std::vector. Similarly, there are many places where the code could be improved by using std::unique_ptr instead of new/delete.)
The GCC compiler warned about memcpy() to nullptr in CSD_HTFC::CSD_HTFC. It appears this was introduced with commit 7e43168.
It's not clear to me whether this bug would have caused a crash or merely have caused the delta encoding to be ineffective; and I don't know how to test my change.
(As a meta-comment, I noticed a number of places where a similar change would improve the code quality -- that is switch from using
char*
withmalloc()
/free()
ornew
/delete
instead ofstd::string
orstd::basic_string
or possiblystd::vector
. Similarly, there are many places where the code could be improved by usingstd::unique_ptr
instead ofnew
/delete
.)A fix for this is here: JanWielemaker@e77521a:
The text was updated successfully, but these errors were encountered: