Skip to content

Commit 4d05077

Browse files
committed
Fix OOB in DTMD
1 parent 3f882e3 commit 4d05077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dtmd/include/transaction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ typedef struct Transaction {
3232
Snapshot snapshots[MAX_SNAPSHOTS_PER_TRANS];
3333
int snapshots_count; // will wrap around if exceeds max snapshots
3434

35-
void *listeners[CHAR_TO_INDEX('z')]; // we are going to use 'a' to 'z' for indexing
35+
void *listeners[CHAR_TO_INDEX('z')+1]; // we are going to use 'a' to 'z' for indexing
3636
} Transaction;
3737

3838
static inline void l2_list_link(L2List* after, L2List* elem)

0 commit comments

Comments
 (0)