Skip to content

Commit

Permalink
Merge pull request #419 from LLNL/bug-mcm86-16sep24-fix-fsanitize
Browse files Browse the repository at this point in the history
 fix runtime -fsanitize error in PDB
  • Loading branch information
markcmiller86 committed Sep 17, 2024
1 parent db6358c commit 778ae27
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pdb/pdpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -1842,13 +1842,11 @@ _PD_parse (void) {
3, 0, 0, 7, 3, 5, 0, 12, 14, 17,
18, 10, 11, 2, 9, 3, 3, 13, 15, 3, 16};

static int negative_one = -1;

/*
* Initialize externals - _PD_parse may be called more than once.
*/
FRAME(pv) = &FRAME(v)[negative_one];
FRAME(ps) = &FRAME(s)[negative_one];
FRAME(pv) = &FRAME(v)[0] - 1;
FRAME(ps) = &FRAME(s)[0] - 1;

FRAME(state) = 0;
FRAME(tmp) = 0;
Expand Down

0 comments on commit 778ae27

Please sign in to comment.