Commit Graph

2 Commits

Author SHA1 Message Date
Julien Fischer
831dca8de8 Fix an abort in read_binary_file_as_bitmap.
Reading a bitmap from a binary file stream where the stream is already at EOF
causes an abort rather than returning an empty bitmap in the case where the
file is a regular file.  (The case where the stream is not a regular file is
already handled correctly.)

library/io.m:
    Fix the above problem.

tests/hard_coded/read_bitmap_size.{m,exp}:
    Extend this test case to check for the above.
2019-09-29 03:05:38 +10:00
Julien Fischer
63648fc73b Add a regression test for the bug fix in commit 3e3dbab.
tests/hard_coded/Mmakefile:
tests/hard_coded/read_bitmap_size.{m,exp}:
   As above.
2019-09-20 16:51:00 +10:00