summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2015-01-04fix -b a mode, spotted by rpeTheo de Raadt
2015-01-03Fix a potential NULL pointer access in an error message after waitpid()Ingo Schwarze
failure; found using detailed information provided by Ulrich Spoerlein <uqs at FreeBSD> about FreeBSD Coverity CID 1261304.
2015-01-03Check the return values of several reallocarray() calls. While here,Lawrence Teo
also check the return value of an adjacent malloc() call. ok jsing@
2015-01-02Explicitly set the *data member of struct ohash_info to NULL.Ingo Schwarze
It is never dereferenced, but it gets copied around, which worries static analysis tools and might also confuse human auditors. FreeBSD Coverity CID 1261298, 1261299, 1261300, reported by Pedro Giffuni and Ulrich Spörlein <pfg@ and uqs@ at FreeBSD>.
2015-01-02Remove unused variable.Mark Lumsden
2015-01-02update currency exchange rates;Jason McIntyre
2015-01-02uppercase for place names, and one "t" in british;Jason McIntyre
from carson chittom
2015-01-02Remove ifdef statements for TIMES and USE_TOD; they don't do anything,Lawrence Teo
apart from introducing a bug where the -elapsed option is not listed in the usage output when it should be. feedback/ok bcook@ jsing@
2015-01-01Fix a buffer overrun triggered by a trailing backslash at EOF inIngo Schwarze
an unclosed conditional body. If the memory contained the byte sequence "\}" after the end of the buffer before the next NUL, this could even write beyond the end of the buffer, specifically '&' to the location of the '}'. Found by jsg@ with afl.
2015-01-01Fix a read buffer overrun triggered by trailing \s- or trailing \s+Ingo Schwarze
without the required subsequent argument; found by jsg@ with afl.
2015-01-01Don't dereference NULL pointers when formatting missing denominators,Ingo Schwarze
subscripts, superscripts, or "from" or "to" arguments. Found by jsg@ with afl.
2015-01-01Provide option types for binary AND, binary OR and silently discarding anJoel Sing
option.
2015-01-01Convert the openssl(1) enc command to the new option parsing and usage.Joel Sing
With input from doug@
2015-01-01If man(1) only has one single argument, always interpret it as a name,Ingo Schwarze
never as a section. Who would have thought that people call their manual pages 7z(1), 9c(1), 9p(1), and 9p(3)... Patch from Sebastien Marie <semarie dash openbsd at latrappe dot fr>.
2014-12-31When showing more than one formatted manual page, insert horizontal linesIngo Schwarze
between pages. Suggested by Theo Buehler <theo at math dot ethz dot ch>. Even in UTF-8 output mode, do not use fancy line drawing characters such that you can easily use /^--- to skip to the next manual in your pager.
2014-12-30Remove some checks that will always evaluate to true. Noticed by a veryBrian Callahan
recent clang. ok schwarze@ lum@
2014-12-30When a file is given on the command line, actually exists, and its nameIngo Schwarze
relative to the respective manual tree is longer than PATH_MAX, do not leak the memory allocated to hold the name. Not sure that can actually happen, but better safe than sorry. FreeBSD Coverity Scan CID 1261303, reported by Pedro Giffuni <pfg@>.
2014-12-29impose some limits on the ideal rounds so nothing too crazy happens whenTed Unangst
the clock results are weird
2014-12-29useless change. overwriting the nul byte with a newline means b64_ntopTed Unangst
can use the whole buffer, even the last byte.
2014-12-29rename fingerprint struct field. no longer exposed to users, but since it'sTed Unangst
not technically a fingerprint as others understand the term, pick another. now it's a keynum! after an email from Florian Weimer
2014-12-29remove the inspect debug command. should not be used by users, who are notTed Unangst
supposed to know what fingerprints are or that they exist.
2014-12-28Fix subtle typo.Joel Sing
2014-12-28Allow a default option to be specified by having a NULL name, but a validJoel Sing
option type. In this case process the option as per normal.
2014-12-28Provide an option type that allows for a callback function to consume anJoel Sing
arbitrary number of arguments. This will allow for more complex option handling as required by some of the openssl(1) applications.
2014-12-28Teach option parsing that a single hyphen denotes the end of named optionsJoel Sing
(as currently only implemented by some of the openssl(1) applications).
2014-12-28Provide a mechanism for option parsing to return the number of argumentsJoel Sing
that it has consumed. This allows for the handling of multiple unnamed arguments, including lists of filenames.
2014-12-28Only accept a single unnamed argument - the existing behaviour is toJoel Sing
silently accept multiple unnamed arguments, ignoring all except the last. This behaviour was already inconsistent between openssl(1) applications; apply the principal of least surprise. This will also simplify the addition of upcoming functionality.
2014-12-28Slightly simplify options parsing logic.Joel Sing
2014-12-28mdoc(7) already uses the mandoc(1) -Ios argument in the footer lineIngo Schwarze
when .Os has no argument, so do the same for man(7) when .TH has less than four arguments; there is no reason to treat both differently. Issue found following a question from Thomas Klausner <wiz at NetBSD>.
2014-12-28Provide two different function pointers for option function callbacks. ThisJoel Sing
allows for simpler code in the common cases and will allow for further extension to support the complex cases.
2014-12-28improve previous: do the size check up front to avoid leaking memoryIngo Schwarze
2014-12-28With revision 1.93 a space character got lost when printing theAlexander Bluhm
signal action. Print the space again. OK jsg@
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