This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients ned.deily, ronaldoussoren, serhiy.storchaka, wessen
Date 2020-10-21.21:36:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:42serhiy.storchakasetrecipients: + serhiy.storchaka, ronaldoussoren, ned.deily, wessen
2020-10-21 21:36:41serhiy.storchakasetmessageid: <>
2020-10-21 21:36:41serhiy.storchakalinkissue42103 messages
2020-10-21 21:36:41serhiy.storchakacreate