[Bug 1266693] 3.3.1 Verifying checksums on Windows systems not correct

bugzilla at redhat.com bugzilla at redhat.com
Mon Nov 9 04:32:42 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1266693

Toby Ovod-Everett <toby at ovod-everett.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |toby at ovod-everett.org



--- Comment #1 from Toby Ovod-Everett <toby at ovod-everett.org> ---
In addition, the code in the documentation does not work on files larger than 2
GB (plus it reads the entire file into memory). 
http://stackoverflow.com/questions/10521061/how-to-get-an-md5-checksum-in-powershell#comment22577307_10521162
(it should be davor's comment) suggests another approach that will stream the
data through the checksum.

Substituting that logic into the approach in the documentation, one gets:

$download_checksum =
[System.BitConverter]::ToString($sha256.ComputeHash([System.IO.File]::Open("$PWD\$image",
[System.IO.Filemode]::Open, [System.IO.FileAccess]::Read))) -replace '-', ''

Also, if anyone does update the documentation, they might as well update the
filenames to 23!

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


More information about the docs-qa mailing list