Bugzilla – Attachment 2958 Details for
Bug 2651
ssh prints bogus error message if config file has very long lines
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fatal if line is at limit
bz2651.diff (text/plain), 868 bytes, created by
Damien Miller
on 2017-03-10 14:33:55 AEDT
(
hide
)
Description:
fatal if line is at limit
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2017-03-10 14:33:55 AEDT
Size:
868 bytes
patch
obsolete
>Index: readconf.c >=================================================================== >RCS file: /cvs/src/usr.bin/ssh/readconf.c,v >retrieving revision 1.269 >diff -u -p -r1.269 readconf.c >--- readconf.c 10 Mar 2017 03:24:48 -0000 1.269 >+++ readconf.c 10 Mar 2017 03:33:02 -0000 >@@ -1705,7 +1705,7 @@ read_config_file_depth(const char *filen > int flags, int *activep, int depth) > { > FILE *f; >- char line[1024]; >+ char line[4096]; > int linenum; > int bad_options = 0; > >@@ -1735,6 +1735,8 @@ read_config_file_depth(const char *filen > while (fgets(line, sizeof(line), f)) { > /* Update line number counter. */ > linenum++; >+ if (strlen(line) == sizeof(line) - 1) >+ fatal("%s line %d too long", filename, linenum); > if (process_config_line_depth(options, pw, host, original_host, > line, filename, linenum, activep, flags, depth) != 0) > bad_options++;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dtucker
:
ok+
Actions:
View
|
Diff
Attachments on
bug 2651
:
2918
|
2919
|
2922
|
2923
| 2958