Skip to content

Commit 38cb05a

Browse files
Add padding to EmailSchedEvent struct.
Specialisations of SchedEvent must be at least as large as a SchedEvent otherwise we get a buffer overrun when trying to copy it into the schedule queue.
1 parent 8607212 commit 38cb05a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/GameSrc/Headers/trigger.h

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ typedef struct _EmailSchedEvent {
8383
ushort timestamp;
8484
ushort type;
8585
short datamunge;
86+
short pad; // must be at least as big as a SchedEvent
8687
} EmailSchedEvent;
8788

8889
// Prototypes

0 commit comments

Comments
 (0)