RE: config file line length limit

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 




-----Original Message-----
Don Fong,  Monday, December 19, 2016 10:00 AM

Damien, thanks for your answer.  any comments on ancillary issues?

* should the limit be documented, or removed?  or should the limit just be increased?
SAN> There's a third option.  If the line is found to be longer than 1022 (1024?) characters, it should be flagged as an error in the config file.  This is in conjunction with the documentation option.

while (fgets(line, sizeof(line), f)) {
/* NEW */   if (line[strlen(line)-1] != '\n') generate-an-error();

/* Update line number counter. */
    linenum++;
    if (process_config_line_depth(options, pw, host,
         original_host,
        line, filename, linenum, activep, flags, depth)
        >> != 0)
            bad_options++;


_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux