On 6/18/2026 9:28 PM, 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: Pierrick Bouvier <[email protected]>

Reply via email to