Message379255
There are two issues here.
The simple one is building a large format string for struct.unpack(). It has simple solution: use f'>{n}{_BINARY_FORMAT[size]}'.
The hard issue is that read(n) allocates n bytes in memory even if there are not so many bytes in the file. It affects not only plistlib and should be fixed in the file implementation itself. There is an open issue for this. |
|
Date |
User |
Action |
Args |
2020-10-21 21:36:42 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, ronaldoussoren, ned.deily, wessen |
2020-10-21 21:36:41 | serhiy.storchaka | set | messageid: <1603316201.98.0.436946514314.issue42103@roundup.psfhosted.org> |
2020-10-21 21:36:41 | serhiy.storchaka | link | issue42103 messages |
2020-10-21 21:36:41 | serhiy.storchaka | create | |
|