From 837b0f5d52701df4a88b94eaa8b0a093e33ff45d Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Wed, 3 May 2023 16:25:52 -0400 Subject: [PATCH] Fix MDRawCrashpadAnnotationList::objects type MDRawCrashpadAnnotationList::objects is a flexible array of MDRawCrashpadAnnotation and not MDLocationDescriptor. Breakpad does not currently use the MDRawCrashpadAnnotationList type, but its definition should be updated to reflect the correct type to avoid confusion. Change-Id: I58b5b0e4f7f95bc003b103e2750e3759c3e31292 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/4503630 Reviewed-by: Joshua Peraza --- src/google_breakpad/common/minidump_format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google_breakpad/common/minidump_format.h b/src/google_breakpad/common/minidump_format.h index 802cc7e3..959d15ba 100644 --- a/src/google_breakpad/common/minidump_format.h +++ b/src/google_breakpad/common/minidump_format.h @@ -1105,7 +1105,7 @@ typedef struct { typedef struct { uint32_t count; - MDLocationDescriptor objects[0]; /* MDRawCrashpadAnnotation */ + MDRawCrashpadAnnotation objects[0]; } MDRawCrashpadAnnotationList; typedef struct {