Commit a59d76c
committed
Add traversal limit to TransformExcC14n to prevent pathological XML inputs
transformExcC14n recursed through child elements without checking
the NSContext traversal limit, unlike other recursive functions
(NSTraverse, etc.). Deeply nested XML documents could cause unbounded
recursion. Add CheckLimit() call at the top of the recursive function.1 parent 48a1e2f commit a59d76c
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
| |||
0 commit comments