Found by GCC 11 '-fanalyzer'.
* lib/supersede.c (create_temp_file): Don't crash when malloc() fails.
+2021-04-30 Bruno Haible <bruno@clisp.org>
+
+ supersede: Fix crash when malloc() fails.
+ Found by GCC 11 '-fanalyzer'.
+ * lib/supersede.c (create_temp_file): Don't crash when malloc() fails.
+
2021-04-27 Paul Eggert <eggert@cs.ucla.edu>
libc-config: fix include problem on older Debian
/* The temporary file needs to be in the same directory, otherwise the
final rename may fail. */
char *temp_filename = (char *) malloc (canon_filename_length + 7 + 1);
+ if (temp_filename == NULL)
+ return -1;
memcpy (temp_filename, canon_filename, canon_filename_length);
memcpy (temp_filename + canon_filename_length, ".XXXXXX", 7 + 1);