Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
XERCESC-2189 - XMLChar with NEED_TO_GEN_TABLE has 2 buffer out of bou…
…nds reads
  • Loading branch information
scantor committed Apr 1, 2020
commit a91b38c78cdf14ed4bc0b7655b985128f9a51065
2 changes: 1 addition & 1 deletion src/xercesc/util/XMLChar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8837,7 +8837,7 @@ XMLByte XMLChar1_1::fgCharCharsTable1_1[0x10000] =

#include <stdio.h>

static XMLCh gTmpCharTable[0xFFFF];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unsure about these any other code changes, above. Are they intentional?

If they are, please could you open separate PRs for them so we can keep code fixes separate from the fuzzer addition.

static XMLCh gTmpCharTable[0x10000];

static void initOneTable(const XMLCh* const theTable
, const XMLByte theMask)
Expand Down