sapling/hgext/extlib/ctreemanifest
Adam Simpkins 86989ea19d treemanifest: fix call to memcpy() with null pointer
Summary:
memcpy() must not be called with a null source pointer, even when the length
argument is 0:
https://www.imperialviolet.org/2016/06/26/nonnull.html

The current behavior causes `hg commit` to crash when compiled with UBSAN
enabled.

Reviewed By: chadaustin, wez

Differential Revision: D7055450

fbshipit-source-id: 40afb40cb346d608fa0e59012bc329b5702ec651
2018-04-13 21:51:14 -07:00
..
manifest_entry.cpp treemanifest: fix call to memcpy() with null pointer 2018-04-13 21:51:14 -07:00
manifest_entry.h cstore: move to hgext/extlib/ 2018-01-08 17:55:53 -08:00
manifest_fetcher.cpp cstore: move to hgext/extlib/ 2018-01-08 17:55:53 -08:00
manifest_fetcher.h cstore: move to hgext/extlib/ 2018-01-08 17:55:53 -08:00
manifest_ptr.cpp cstore: move to hgext/extlib/ 2018-01-08 17:55:53 -08:00
manifest_ptr.h ctreemanifest: move to hgext/extlib/ 2018-01-08 17:55:53 -08:00
manifest.cpp cstore: move to hgext/extlib/ 2018-01-08 17:55:53 -08:00
manifest.h cstore: move to hgext/extlib/ 2018-01-08 17:55:53 -08:00
treemanifest.cpp hg: remove assert from treemanifest code 2018-04-13 21:51:03 -07:00
treemanifest.h cstore: move to hgext/extlib/ 2018-01-08 17:55:53 -08:00