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
Summary:
This change fixes several flaky tests cases in NvmItemTest; e.g., for NvmItemTest.TotalSize, we were
hitting unsigned overflow error for getting total size (i.e., NvmItem::totalSize) when numBlobs_ is
0 (e.g., https://fburl.com/testinfra/h7trhoi3).
NvmItem.h:129:53: runtime error: addition of unsigned offset to 0x60300001f942 overflowed to 0x60300001f93a
This is a test case error and this change fixes it.
This change also fixes multiple instances of buffer overflow errors in constructing NvmItem; NvmItem
buffer should include sizeof(NvmItem) itself in addition to the blob sizes.
Reviewed By: therealgymmy
Differential Revision: D49323745
fbshipit-source-id: fda63a00b472e328b1e1d8afab291d00a461cc86
0 commit comments