Skip to content

Commit

Permalink
Add Scott's GPG key to KEYS file
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/xerces/c/branches/xerces-3.1@1663379 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Scott Cantor committed Mar 2, 2015
1 parent 6b5dc0a commit ef891e9
Show file tree
Hide file tree
Showing 2 changed files with 130 additions and 1 deletion.
97 changes: 97 additions & 0 deletions KEYS
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Boris Kolpackov [email protected]
Tinny Ng [email protected]
Gareth Reakes [email protected]
Neil Graham [email protected]
Scott Cantor [email protected]

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.5 (GNU/Linux)
Expand Down Expand Up @@ -224,3 +225,99 @@ smUlVt+wRiRQmIhJBBgRAgAJBQJAMSVjAhsMAAoJEOzrCFVx2yM1QjkAnjJl6YHS
HnUmiKj1nzOTMG+DlKq0AJ42j+nRdCDjdX6tK5/7cy5JnUe7bg==
=jqXV
-----END PGP PUBLIC KEY BLOCK-----

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1

mQINBE56gwwBEADI6Y7tBIdYr8t0zfHU2hRbD7GfuanIkn4Fhf/CZ7ICN+SfA/XP
JAx3HDRkM/nc65U2mKG7vG3zlNOcKgeFoCwqhlLc4sSGP6DDoPYKtZOLEHwA/sIy
Lldw3re5KbCFIElnbBW/0av15IGHXgyylmG24jhlY/ufjLd53Qm4agxv51kdYdgH
cI0djzLqvMWTabWhw8QtmitPZSKdqOwTqkIt6bYAdOvc9r5bvAzemw6IO01L9aX7
/yFIVJAYySL/UpbEtLcl3B/qXUXwhiq2bAUtvdmV+35FSMrAgfD25bYv+dVoJdtX
Gb4tQcPteSRDIQYswT+bilEtGOOu9vqLvko3hSHOK2Yqc8SufDakrOlCWO1R00Sw
QHGSkPKgA5O3RpOz3qbuPN6sDt/7FgqyzB6VqF9445bTqWDfIihXEAFr97gf28Xg
ngAn2T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/xercesc/internal/XMLReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
#include <xercesc/util/XMLEBCDICTranscoder.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/util/Janitor.hpp>

XERCES_CPP_NAMESPACE_BEGIN

// ---------------------------------------------------------------------------
Expand Down Expand Up @@ -1460,6 +1459,17 @@ void XMLReader::doInitDecode()

while (fRawBufIndex < fRawBytesAvail)
{
// Security fix: make sure there are at least sizeof(UCS4Ch) bytes to consume.
if (fRawBufIndex + sizeof(UCS4Ch) > fRawBytesAvail) {
ThrowXMLwithMemMgr1
(
TranscodingException
, XMLExcepts::Reader_CouldNotDecodeFirstLine
, fSystemId
, fMemoryManager
);
}

// Get out the current 4 byte value and inc our raw buf index
UCS4Ch curVal = *asUCS++;
fRawBufIndex += sizeof(UCS4Ch);
Expand Down Expand Up @@ -1619,6 +1629,17 @@ void XMLReader::doInitDecode()

while (fRawBufIndex < fRawBytesAvail)
{
// Security fix: make sure there are at least sizeof(UTF16Ch) bytes to consume.
if (fRawBufIndex + sizeof(UTF16Ch) > fRawBytesAvail) {
ThrowXMLwithMemMgr1
(
TranscodingException
, XMLExcepts::Reader_CouldNotDecodeFirstLine
, fSystemId
, fMemoryManager
);
}

// Get out the current 2 byte value
UTF16Ch curVal = *asUTF16++;
fRawBufIndex += sizeof(UTF16Ch);
Expand Down Expand Up @@ -1708,6 +1729,17 @@ void XMLReader::doInitDecode()
//
void XMLReader::refreshRawBuffer()
{
// Security fix: make sure we don't underflow on the subtraction.
if (fRawBufIndex > fRawBytesAvail) {
ThrowXMLwithMemMgr1
(
RuntimeException
, XMLExcepts::Str_StartIndexPastEnd
, fSystemId
, fMemoryManager
);
}

//
// If there are any bytes left, move them down to the start. There
// should only ever be (max bytes per char - 1) at the most.
Expand Down

0 comments on commit ef891e9

Please sign in to comment.