Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cf9d417

Browse files
committed
Fix OOB in DTMD
1 parent b986f30 commit cf9d417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pg_dtm/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 bool l2_list_is_empty(L2List* elem)

0 commit comments

Comments
 (0)