mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Issue #1317 - Increase the XML nested depth limit to 2048.
- Converts from macro to static const for the limit. - Uses a check against the declared type for the counter instead of a hard-coded one. This resolves #1317.
This commit is contained in:
parent
9bb203773c
commit
0d40de5915
2 changed files with 13 additions and 9 deletions
|
|
@ -16,9 +16,6 @@
|
|||
#include "nsIParser.h"
|
||||
#include "nsCycleCollectionParticipant.h"
|
||||
|
||||
// Tree depth limit for XML-based files (xml/svg/etc.)
|
||||
#define MAX_XML_TREE_DEPTH 200
|
||||
|
||||
class nsIExpatSink;
|
||||
class nsIExtendedExpatSink;
|
||||
struct nsCatalogData;
|
||||
|
|
@ -123,13 +120,14 @@ private:
|
|||
// Necko
|
||||
bool mIsFinalChunk;
|
||||
|
||||
uint8_t mTagDepth;
|
||||
// The depth of nested parsing we are currently at
|
||||
uint16_t mTagDepth;
|
||||
|
||||
nsresult mInternalState;
|
||||
|
||||
// The length of the data in Expat's buffer (in number of PRUnichars).
|
||||
uint32_t mExpatBuffered;
|
||||
|
||||
|
||||
// These sinks all refer the same conceptual object. mOriginalSink is
|
||||
// identical with the nsIContentSink* passed to WillBuildModel, and exists
|
||||
// only to avoid QI-ing back to nsIContentSink*.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue