Bug 1526744 - find-dupes.py: Calculate md5 by chunk.
authorRob Lemley <rob@thunderbird.net>
Thu, 21 Feb 2019 20:14:17 +0000 (15:14 -0500)
committerCarsten Schoenert <c.schoenert@t-online.de>
Fri, 14 Jun 2019 05:25:35 +0000 (06:25 +0100)
commitc09bde0e2f6f7e2bde74be61c986d5afc70cbebd
treeccb83cd969057fd7f755a1db5371ea64ecc90b8d
parent4ea3082ea9204d499d9ef480ee53207d4fe863e8
Bug 1526744 - find-dupes.py: Calculate md5 by chunk.

Read the file in chunks and use md5.update() rather than reading the entire
file into RAM and calculating the hash all at once. This prevents out of memory
errors on build systems with low RAM.

Gbp-Pq: Topic fixes
Gbp-Pq: Name Bug-1526744-find-dupes.py-Calculate-md5-by-chunk.patch
toolkit/mozapps/installer/find-dupes.py