Thread overview
[Issue 21599] std.digest.crc : crc32Of fails with SegFault on array of 4MB or larger
[Issue 21599] std.digest.crc : crc32Of fails with SefFault on array of 4MB or larger
Feb 04, 2021
apham
May 02, 2021
Berni44
Dec 17, 2022
Iain Buclaw
Dec 17, 2022
Iain Buclaw
February 04, 2021
https://issues.dlang.org/show_bug.cgi?id=21599

apham <apz28@hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |apz28@hotmail.com

--- Comment #1 from apham <apz28@hotmail.com> ---
This construct will cause the function to pass fixed length array ubyte[4194304] and construct struct CRC(uint N, ulong P) with N=64u & P=15564440312192434176LU hence stack overflow. Change to dynamic array construct should fix the problem

ubyte[4] pcrc = buffer[].crc32Of();

--
May 02, 2021
https://issues.dlang.org/show_bug.cgi?id=21599

Berni44 <bugzilla@bernis-buecher.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@bernis-buecher.de
            Summary|std.digest.crc : crc32Of    |std.digest.crc : crc32Of
                   |fails with SefFault on      |fails with SegFault on
                   |array of 4MB or larger      |array of 4MB or larger

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=21599

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=21599

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
           Severity|normal                      |critical

--