From ce5c36705e2a85027f124c3804fc234429cbc3bb Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 12 Nov 2019 16:51:04 +1100 Subject: [PATCH] [porthole] fix invalid pointer dereference --- porthole/src/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/porthole/src/types.h b/porthole/src/types.h index 77bab7e3..ace02a01 100644 --- a/porthole/src/types.h +++ b/porthole/src/types.h @@ -28,4 +28,4 @@ typedef struct } PortholeSegment; -#define PH_SEGMENTS(map) ((PortholeSegment *)((&map)+1)) \ No newline at end of file +#define PH_SEGMENTS(map) ((PortholeSegment *)((map)+1)) \ No newline at end of file