Skip to content

Commit eb2c1a3

Browse files
committed
fix(driver): use correct syntax for flexible array member
UBSAN (Undefined Behaviour Sanitizer) performs compile-time and runtime checks based on declared array bounds. Flaxible Array Member used to be declared with the [0] synthax, but should now be expressed with [] syntax to respect C99 standard (§6.7.2.1). Signed-off-by: irozzo-1A <[email protected]>
1 parent d4fb9de commit eb2c1a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/ppm_events_public.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2299,7 +2299,7 @@ struct ppm_proc_info {
22992299
struct ppm_proclist_info {
23002300
int64_t n_entries;
23012301
int64_t max_entries;
2302-
struct ppm_proc_info entries[0];
2302+
struct ppm_proc_info entries[];
23032303
};
23042304

23052305
enum syscall_flags {

0 commit comments

Comments
 (0)