bug#25149: md5sum fails with message "Invalid argument" on 4, 294, 967, 295-byte files in FAT32

2016-12-09 Thread Pádraig Brady
On 09/12/16 15:45, Jaime Gaspar wrote: > --- Bug --- > In a FAT32 file system, if one runs md5sum on a 4,294,967,294-byte file (one > byte less than the maximum file size) it succeeds, but if one runs md5sum on > a 4,294,967,295-byte file (the maximum file size) it fails with error message > "In

bug#25149: md5sum fails with message "Invalid argument" on 4, 294, 967, 295-byte files in FAT32

2016-12-09 Thread Pádraig Brady
tag 25149 notabug close 25149 stop On 09/12/16 18:28, Jaime Gaspar wrote: >read(3, > "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 32768) > = 32767 OK we've read all we can, but to verify md5sum will do: fread(buffer + 32767, 1, 1, stream) Then the stdio stream w

bug#25149: md5sum fails with message "Invalid argument" on 4, 294, 967, 295-byte files in FAT32

2016-12-09 Thread Jaime Gaspar
--- Bug --- In a FAT32 file system, if one runs md5sum on a 4,294,967,294-byte file (one byte less than the maximum file size) it succeeds, but if one runs md5sum on a 4,294,967,295-byte file (the maximum file size) it fails with error message "Invalid argument". --- How to reproduce the bug --