On 19/6/26 06:28, Brian Cain wrote:
On Windows, opening a file in text mode causes fread() to return fewer bytes than ftell() reported, because CRLF sequences are translated to LF on read. This causes idef-parser to report an error and abort.Open the input file in binary mode ("rb") so that ftell() and fread() agree on the file size across all platforms. Signed-off-by: Brian Cain <[email protected]> --- target/hexagon/idef-parser/idef-parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
