• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision8cfb541ad1edfcc21b28eeb767e66b1001b0a84c (tree)
Time2020-07-01 06:10:46
AuthorChet Ramey <chet.ramey@case...>
CommiterTom Tromey

Log Message

Readline-8.0 patch 1: fix file descriptor leak with zero-length history file

Change Summary

Incremental Difference

--- a/readline/readline/histfile.c
+++ b/readline/readline/histfile.c
@@ -305,6 +305,7 @@ read_history_range (const char *filename, int from, int to)
305305 if (file_size == 0)
306306 {
307307 free (input);
308+ close (file);
308309 return 0; /* don't waste time if we don't have to */
309310 }
310311
--- a/readline/readline/patchlevel
+++ b/readline/readline/patchlevel
@@ -1,3 +1,3 @@
11 # Do not edit -- exists only for use by patch
22
3-0
3+1