make/src
Paul Smith c5319e75f5 [SV 58497] Ensure $(file <) newline removal succeeds
Keep a count of bytes read rather than comparing pointers since the
variable_buffer might get reallocated.

Bug and patch by Ken Tossell <ken@tossell.net>
Regression tests by Dmitry Goncharov <dgoncharov@users.sf.net>
Tweaked by Paul Smith <psmith@gnu.org>

* src/function.c (func_file): Use bytes read rather than a pointer.
* tests/scripts/functions/file: Provide various tests for reading
empty files, files with/without newlines, and large files.
2021-03-15 03:28:11 -04:00
..
w32 * src/output.h: [WINDOWS32] [SV 57888] Use gnulib fcntl if available 2020-03-31 01:07:43 -04:00
amiga.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
amiga.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
ar.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
arscan.c Avoid some valgrind warnings 2020-11-29 17:59:40 -05:00
commands.c Apply spelling corrections from Fossies spellcheck 2020-01-20 19:25:54 -05:00
commands.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
config.ami.template Apply spelling corrections from Fossies spellcheck 2020-01-20 19:25:54 -05:00
config.h-vms.template Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
config.h.W32.template Add support for building with Tiny C for MS-Windows 2020-02-29 11:14:46 +02:00
configh.dos.template Apply spelling corrections from Fossies spellcheck 2020-01-20 19:25:54 -05:00
debug.h [SV 59169] Add --debug=why and --debug=print options 2020-12-05 16:25:12 -05:00
default.c * src/default.c (default_variables) [AIX]: [SV 59096] Fix ARFLAGS 2020-11-29 17:55:32 -05:00
dep.h [SV 60188] Explicit prereqs cannot be intermediate files 2021-03-15 02:10:49 -04:00
dir.c [SV 41273] Allow the directory cache to be invalidated 2020-11-29 17:59:16 -05:00
expand.c Ensure variable_buffer is always set. 2021-03-15 01:17:06 -04:00
file.c Ensure variable_buffer is always set. 2021-03-15 01:17:06 -04:00
filedef.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
function.c [SV 58497] Ensure $(file <) newline removal succeeds 2021-03-15 03:28:11 -04:00
getopt1.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
getopt.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
getopt.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
gettext.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
gmk-default.scm Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
gnumake.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
guile.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
hash.c * src/hash.c (jhash_string): Don't read past end of string. 2019-10-05 11:23:31 -04:00
hash.h Rework directory structure to use GNU-recommended "src" directory. 2017-11-19 14:07:22 -05:00
implicit.c [SV 60188] Explicit prereqs cannot be intermediate files 2021-03-15 02:10:49 -04:00
job.c [SV 59169] Add --debug=why and --debug=print options 2020-12-05 16:25:12 -05:00
job.h Apply spelling corrections from Fossies spellcheck 2020-01-20 19:25:54 -05:00
load.c [SV 57930] Cast char to unsigned char to call ctype functions 2020-05-03 14:54:56 -04:00
loadapi.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
main.c Ensure variable_buffer is always set. 2021-03-15 01:17:06 -04:00
makeint.h [SV 59881] Handle vertical TAB consistently 2021-03-15 01:16:32 -04:00
misc.c [SV 59881] Handle vertical TAB consistently 2021-03-15 01:16:32 -04:00
os.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
output.c [SV 57967] Only set APPEND mode for regular files 2020-03-31 00:19:20 -04:00
output.h * src/output.h: [WINDOWS32] [SV 57888] Use gnulib fcntl if available 2020-03-31 01:07:43 -04:00
posixos.c [SV 58232] Disable inheritance of jobserver FDs for recursive make 2020-05-02 20:09:29 -04:00
read.c Ensure variable_buffer is always set. 2021-03-15 01:17:06 -04:00
remake.c Ensure variable_buffer is always set. 2021-03-15 01:17:06 -04:00
remote-cstms.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
remote-stub.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
rule.c [SV 40657] Reinstate old behavior for suffix rules with prereqs 2020-01-19 17:04:52 -05:00
rule.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
signame.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
strcache.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
variable.c Support "unexport" in target-specific variables. 2020-11-29 17:57:33 -05:00
variable.h Ensure variable_buffer is always set. 2021-03-15 01:17:06 -04:00
version.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
vms_exit.c Apply spelling corrections from Fossies spellcheck 2020-01-20 19:25:54 -05:00
vms_export_symbol.c Apply spelling corrections from Fossies spellcheck 2020-01-20 19:25:54 -05:00
vms_progname.c [SV 57930] Cast char to unsigned char to call ctype functions 2020-05-03 14:54:56 -04:00
vmsdir.h Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
vmsfunctions.c Apply spelling corrections from Fossies spellcheck 2020-01-20 19:25:54 -05:00
vmsify.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00
vmsjobs.c [SV 57930] Cast char to unsigned char to call ctype functions 2020-05-03 14:54:56 -04:00
vpath.c Update copyright statements for 2020 2020-01-03 02:08:59 -05:00