()
| 117 | if isinstance(p,plistlib._PlistParser): |
| 118 | # Monkey patch! |
| 119 | def end_integer(): |
| 120 | d = p.get_data() |
| 121 | value = int(d,16) if d.lower().startswith("0x") else int(d) |
| 122 | if -1 << 63 <= value < 1 << 64: |
| 123 | p.add_object(value) |
| 124 | else: |
| 125 | raise OverflowError("Integer overflow at line {}".format(p.parser.CurrentLineNumber)) |
| 126 | def end_data(): |
| 127 | try: |
| 128 | p.add_object(plistlib._decode_base64(p.get_data())) |
nothing calls this directly
no outgoing calls
no test coverage detected