summaryrefslogtreecommitdiff
path: root/include/hexdump.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hexdump.h')
-rw-r--r--include/hexdump.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/hexdump.h b/include/hexdump.h
index e8f4fe1a..6f3d5fa5 100644
--- a/include/hexdump.h
+++ b/include/hexdump.h
@@ -89,10 +89,14 @@ vhexdumpf(const char *file, int line, const char *func, const CHAR16 *const fmt,
if (verbose == 0)
return;
- if (!data || !size) {
+ if (!data) {
dprint(L"hexdump of a NULL pointer!\n");
return;
}
+ if (!size) {
+ dprint(L"hexdump of a 0 size region!\n");
+ return;
+ }
while (offset < size) {
char hexbuf[49];