[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fopen()-pclose() bug in install-info
From: |
Barath Aron |
Subject: |
fopen()-pclose() bug in install-info |
Date: |
Fri, 29 Jan 2021 13:41:22 +0100 |
Hello,
I ran into a bug in the "install-info" program, where the "dir" file is
opened with fopen(), and it was closed with pclose(). That's why
"install-info" hangs on the OS I use.
The path in the code is clear.
install-info/install-info.c:
910: f = open_possibly_compressed_file (...)
700: f = fopen (*opened_filename, FOPEN_RBIN);
# this might be executed, but won't make any difference
882: f = freopen (*opened_filename, "r", f);
888: return f;
939: pclose(f);
I was able to get this work with the attached patch file, based on the
comments and the code around it.
Please fix this issue.
Regards,
Aron
install-info.c.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- fopen()-pclose() bug in install-info,
Barath Aron <=