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>
Wed, 11 Sep 2019 15:54:10 +0000 (16:54 +0100)
commit909cbf42cdc4ddf6a32883c824d320057fa129dc
tree1994b9a66eefdace8919644f124deb7c2cbf057a
parentec57f06c6da7cf7e652c41b534b7fef4d65c5508
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