|
ScroogeXHTML for Object Pascal 10.0-RC1
|
Classes | |
| class | TSxReader |
| Raised by TSxReader when RTF group nesting exceeds MAX_RTF_GROUP_DEPTH. More... | |
Functions | |
| string | RGBToHex (const Int64 R, const Int64 G, const Int64 B) |
| convert an RTF colour table entry (\red, \green, \blue) to a "#rrggbb" hex string | |
Variables | |
| const | MAX_RTF_GROUP_DEPTH = 4096 |
| Hard ceiling on RTF group nesting depth. | |
| string RGBToHex | ( | const Int64 | R, |
| const Int64 | G, | ||
| const Int64 | B ) |
convert an RTF colour table entry (\red, \green, \blue) to a "#rrggbb" hex string
| const MAX_RTF_GROUP_DEPTH = 4096 |
Hard ceiling on RTF group nesting depth.
Real-world RTF nests only a handful of groups deep. This limit is set far above any legitimate use and exists solely so that adversarial input - a file that is just an endless run of "" - cannot grow the reader's property stack until the process runs out of memory (see WEAK-SPOTS.md issue 1).