Bugzilla – Attachment 2174 Details for
Bug 2025
Comments with 1024 chars or more break sshd_config
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
extend config line length limit and detect if it's exceeded
openssh-config-linelength.patch (text/plain), 935 bytes, created by
Darren Tucker
on 2012-07-12 20:17:52 AEST
(
hide
)
Description:
extend config line length limit and detect if it's exceeded
Filename:
MIME Type:
Creator:
Darren Tucker
Created:
2012-07-12 20:17:52 AEST
Size:
935 bytes
patch
obsolete
>Index: servconf.c >=================================================================== >RCS file: /home/dtucker/openssh/cvs/openssh/servconf.c,v >retrieving revision 1.224 >diff -u -p -r1.224 servconf.c >--- servconf.c 20 Jun 2012 11:53:58 -0000 1.224 >+++ servconf.c 12 Jul 2012 10:15:25 -0000 >@@ -1525,8 +1525,9 @@ process_server_config_line(ServerOptions > void > load_server_config(const char *filename, Buffer *conf) > { >- char line[1024], *cp; >+ char line[4096], *cp; > FILE *f; >+ int lineno = 0; > > debug2("%s: filename %s", __func__, filename); > if ((f = fopen(filename, "r")) == NULL) { >@@ -1535,6 +1536,9 @@ load_server_config(const char *filename, > } > buffer_clear(conf); > while (fgets(line, sizeof(line), f)) { >+ lineno++; >+ if (strlen(line) == sizeof(line) - 1) >+ fatal("%s line %d too long", filename, lineno); > /* > * Trim out comments and strip whitespace > * NB - preserve newlines, they are needed to reproduce
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
Actions:
View
|
Diff
Attachments on
bug 2025
:
2173
| 2174