mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 06:38:36 +00:00
Bug 917593 - Don't assert for zero-length strings. r=Waldo
This commit is contained in:
parent
d44875c406
commit
7fcde1d302
@ -238,9 +238,9 @@ class EndianUtils
|
||||
{
|
||||
DebugOnly<const uint8_t*> byteDestPtr = static_cast<const uint8_t*>(dest);
|
||||
DebugOnly<const uint8_t*> byteSrcPtr = static_cast<const uint8_t*>(src);
|
||||
MOZ_ASSERT((byteDestPtr < byteSrcPtr &&
|
||||
MOZ_ASSERT((byteDestPtr <= byteSrcPtr &&
|
||||
byteDestPtr + count <= byteSrcPtr) ||
|
||||
(byteSrcPtr < byteDestPtr &&
|
||||
(byteSrcPtr <= byteDestPtr &&
|
||||
byteSrcPtr + count <= byteDestPtr));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user