summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2014-12-26not necessary to define INET anymoreTed Unangst
2014-12-25Reduce memory and time consumption on certain malformed input filesIngo Schwarze
by limiting the length of expanded input lines during the (usually recursive) expansion of user defined strings. Resource hogging found by jsg@ with afl.
2014-12-24Support negative indentations for mdoc(7) displays and lists.Ingo Schwarze
Not exactly recommended for use, rather for groff compatibility. While here, introduce similar SHRT_MAX limits as in man(7), fixing a few cases of infinite output found by jsg@ with afl.
2014-12-24simplify. bcrypt only support and use newer libc APIs. no makekey emul.Ted Unangst
ok deraadt schwarze is a little sad to see the last 1/8 shared man page go, but we have a support program in place, called the attic.
2014-12-24For .RS, we need to save the information how much we actually indentedIngo Schwarze
because negative indents can get truncated, in which case we no longer know how to restore the original indent at the end of the block. This also solves another case of effectively infinite output found by jsg@ with afl, triggered by very large negative indents.
2014-12-24Prevent unsigned integer underflow when a number is too wideIngo Schwarze
for a table cell with an "nz" layout specification, causing essentially infinite output as found by jsg@ with afl.
2014-12-24When a man(7) document contains unreasonably large numbers forIngo Schwarze
indentations or paragraph distances, large output may be generated, which is practically the same as an endless loop; found by jsg@ with afl. Reject such unreasonably large numbers beyond arbitrary limits similar to those used by groff (max. 65 blank lines between paragraphs and max. SHRT_MAX characters per output line) and fall back to defaults when exceeded. Having the limits behave in exactly the same way is not relevant.
2014-12-24Clean up CIPHERS and related sections:Lawrence Teo
- Sync cipher strings with the ones that are actually implemented. - Remove CIPHERS SUITE NAMES (the actual cipher suites can be obtained via "openssl ciphers -v"), CIPHERS NOTES, and CIPHERS HISTORY sections. - Stop mentioning export cipher suites since they have already been removed. feedback from deraadt@ and jmc@ ok jmc@
2014-12-23KNF and add a little more debug()Damien Miller
2014-12-23Use ${STATIC} instead of hardcoded -static in order to take advantage ofPascal Stumpf
static pie. ok deraadt@ miod@ benno@
2014-12-23support negative horizontal widths in man(7);Ingo Schwarze
minus twenty lines of code in spite of enhanced functionality
2014-12-23fix typo in previousIngo Schwarze
2014-12-23some scaling unit fixes:Ingo Schwarze
- .sp with an invalid argument is .sp 1v, not .sp 0v - in man(1), trailing garbage doesn't make scaling units invalid
2014-12-23even if the second argument to .IP is invalid, don't print itIngo Schwarze
2014-12-23Fix vertical scaling. Obviously, nobody ever had a serious look at this.Ingo Schwarze
Basic units, centimeters, points, ens, ems, and the rounding algorithm were all wrong, only inches, pica, and the default vertical span worked.
2014-12-23In a2roffsu(), do not parse the number twice.Ingo Schwarze
Gets rid of 25 lines of code and one static buffer. No functional change for numbers shorter than BUFSIZ characters.
2014-12-23correctly handle scaling units after .PDIngo Schwarze
2014-12-22The code already pays attention not to close the same block twice.Ingo Schwarze
Similarly, avoid having the same block break two other blocks. In some situations, this could lead to an endless loop in rew_sub() found by jsg@ with afl. Minimal example: .Po Ao Pc Bo Pc Ac Bc
2014-12-22remove never used in openbsd tahoe support. and ns32k. and pmax.Ted Unangst
ok deraadt millert
2014-12-22add fingerprinthash to the options list;Jason McIntyre
2014-12-22tweak previous;Jason McIntyre
2014-12-22mention ssh -Q feature to list supported { MAC, cipher, KEX, key }Damien Miller
algorithms in more places and include the query string used to list the relevant information; bz#2288
2014-12-22tweak previous;Jason McIntyre
2014-12-22correct description of what will happen when a AuthorizedKeysCommand isDamien Miller
specified but AuthorizedKeysCommandUser is not (sshd will refuse to start)
2014-12-22make internal handling of filename arguments of "none" more consistentDamien Miller
with ssh. "none" arguments are now replaced with NULL when the configuration is finalised. Simplifies checking later on (just need to test not-NULL rather than that + strcmp) and cleans up some inconsistencies. ok markus@
2014-12-22remember which public keys have been used for authentication andDamien Miller
refuse to accept previously-used keys. This allows AuthenticationMethods=publickey,publickey to require that users authenticate using two _different_ pubkeys. ok markus@
2014-12-22fix passing of wildcard forward bind addresses when connectionDamien Miller
multiplexing is in use; patch from Sami Hartikainen via bz#2324; ok dtucker@
2014-12-21tweak previous;Jason McIntyre
2014-12-21document FingerprintHash here tooDamien Miller
2014-12-21Add FingerprintHash option to control algorithm used for keyDamien Miller
fingerprints. Default changes from MD5 to SHA256 and format from hex to base64. Feedback and ok naddy@ markus@
2014-12-21Use -m for macro set selection in mandoc(1) mode only, not in man(1)Ingo Schwarze
and apropos(1) mode. While here, put a space character between options and option arguments in error messages. Both reported by Alessandro DE LAURENZIS <just22 dot adl at gmail dot com>.
2014-12-21fix test-redef2:Marc Espie
- introduce explicit STORAGE classes for the shadow stack entries - delay freeing definitions if they're in-use, keep them in a simple array. okay millert@
2014-12-21Fix build with -Werror -std=c99 -pedantic.Daniel Dickman
ok schwarze@
2014-12-20Fix two issues causing a class of assertion failures found by jsg@ with afl.Ingo Schwarze
1) rew_sub(): Make sure REWIND_MORE is acted upon even when followed by REWIND_NONE. This prevents .It from ending up inside other children of .Bl. 2) blk_exp_close(): Only allow extension of .Bl when it has at least one .It. Otherwise, a broken child block could be moved in front of the .Bl, effectively resulting in a .Bl that ended before it began.
2014-12-20resolve some code duplication; no functional changeIngo Schwarze
2014-12-19no need to kvm the palloc. the pgsize is more correctly accessed via pool.Ted Unangst
2014-12-19Use reallocarray() where suitableTheo de Raadt
ok millert doug
2014-12-19Enforcing an arbitrary, implementation dependent, undocumented limitIngo Schwarze
by calling assert() when valid user input exceeds it is a bad idea. Allocate the terminal font stack dynamically instead of crashing above 10 entries. Issue found by jsg@ with afl.
2014-12-19Rewrite the low-level UTF-8 parser from scratch.Ingo Schwarze
It accepted invalid byte sequences like 0xc080-c1bf, 0xe08080-e09fbf, 0xeda080-edbfbf, and 0xf0808080-f08fbfbf, produced valid roff Unicode escape sequences from them, and the algorithm contained strong defenses against any attempt to fix it. This cures an assertion failure in the terminal formatter caused by sneaking in ASCII 0x08 (backspace) by "encoding" it as an (invalid) multibyte UTF-8 sequence, found by jsg@ with afl. As a bonus, the new algorithm also reduces the code in the function by about 20%.
2014-12-19CA.sh and CA.pl are goneLawrence Teo
2014-12-19Sync message digest algorithms with the ones actually implemented inLawrence Teo
"openssl dgst". feedback/ok jmc@
2014-12-18don't count partial authentication success as a failure againstDamien Miller
MaxAuthTries; ok deraadt@
2014-12-18Don't let .Ta creep into an already-closed list; same as for .It.Ingo Schwarze
Fixes an assertion found by jsg@ with afl.
2014-12-18update usage() and the list of non-standard (i.e. non-posix) options;Jason McIntyre
ok schwarze
2014-12-18Only keep leading .Sm inside a list when it immediately precedesIngo Schwarze
the first .It. Otherwise, move it out together with whatever follows. Fixing an assertion failure found by jsg@ with afl.
2014-12-18When the head of a list item is extended with a partial explicitIngo Schwarze
macro (for example .Xo) and never closed again, the item ends up without a body block. This can even happen for list types that usually don't have heads in the first place. So even in this case, check for the existence of the body before accessing it. NULL pointer access found by jsg@ with afl.
2014-12-18Don't let the modulo operator divide by zero.Ingo Schwarze
Found by jsg@ with afl.
2014-12-18The code is already careful to not add items to lists that wereIngo Schwarze
already closed. In this respect, also consider lists closed that have broken another block, their closure pending until the end of the broken block. This avoids syntax tree corruption leading to a NULL pointer access found by jsg@ with afl.
2014-12-17Be a bit more lenient in what to accept for section names givenIngo Schwarze
as the first man(1) command line argument without -s: Accept digits like "1", "2"; digit+letter like "3p", "1X"; and "n". Issue reported by Svyatoslav Mishyn <juef at openmailbox dot org> (Crux Linux).
2014-12-16Ignore mdoc(7) and man(7) macros inside tbl(7) code because theyIngo Schwarze
would abort the table in an unclean way, causing assertion failures found by jsg@.