summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2017-02-15Do not clear to end of screen unless the pane is at the bottom.Nicholas Marriott
2017-02-15"status bar" -> "status line" for consistency, from Benjamin Dopplinger.Nicholas Marriott
2017-02-15fix division by zero crash in "df" output when server returns zeroDamien Miller
total filesystem blocks/inodes. Spotted by Guido Vranken; ok dtucker@
2017-02-14Make source-file look for files relative to the client working directoryNicholas Marriott
(like load-buffer and save-buffer), from Chris Pickel. Also break the where-is-this-file code out into its own function for loadb and saveb.
2017-02-13Collected cells may still need to be extended for RGB colours.Nicholas Marriott
2017-02-12Do not access a NULL pointer if a matrix or square root are empty.Ingo Schwarze
Crashes found by tb@ with afl(1).
2017-02-11Do not read one element past the end of the static const termacts array.Ingo Schwarze
Bug found by Sevan Janiyan <venture37 at geeklan dot co dot uk> who ran the OpenBSD mandoc test suite on Ubuntu on POWER8 (sic!) and reported that mdoc/Sh/before.in failed in -Tman mode. If that isn't power testing, i don't know...
2017-02-11Never look for broken blocks inside blocks that are already closed.Ingo Schwarze
Fixes the last the of tree corruptions sometimes causing NULL dereference reported by tb@; this one triggered in cases like: .Bl -column .It Pq Ta
2017-02-11Do not prematurely close .Nd containing a broken child.Ingo Schwarze
Fixes tree corruption leading to NULL dereference in insane cases like .Oo Oo .Nd .Pq Oc .Oc Oc found by tb@ with afl(1).
2017-02-11Do not prematurely mark intermediate blocks as broken while scanningIngo Schwarze
backwards. Only do so when a block is found that is actually broken. Logic error found while investigating crashes reported by tb@.
2017-02-10For child macros of block-end macros, only scan backwards for pendingIngo Schwarze
breakers unless the parent of the block is already closed. While the scanning is needed in cases like ".Ac Bo" for broken Ao, it is useless and crashy in cases like ".Ac Bc" for non-broken Ao. This fixes a NULL pointer dereference that tb@ found with afl(1).
2017-02-10Oops, the previous commit unintentionally included this file.Ingo Schwarze
The intended commit message for rev. 1.167 is: In the SYNOPSIS, .Nm blocks can get broken if one of their children gets broken. In that case, mark them as BROKEN and ENDED and make sure they get closed out together with the child. Fixes tree corruption leeding to a NULL dereference found by tb@ with afl(1) in: .Sh SYNOPSIS .Bl .Oo .Nm .Bk .Oc .It (where .Bk is the child and .Oo is the breaker). A simpler form of the same corruption (without crash) is visible in: .Sh SYNOPSIS .Ao .Nm .Bo .Ac .Bc text where the text ended up inside the .Nm (child .Bo, breaker .Ao).
2017-02-10In -Ttree output mode, show the BROKEN node flag andIngo Schwarze
provide a -Onoval output option to show the unvalidated tree.
2017-02-10Add not delete the event if more to write.Nicholas Marriott
2017-02-10Revert; committed from the wrong directory.Nicholas Marriott
2017-02-10Add rather than delete the event if more writing to come.Nicholas Marriott
2017-02-10Don't use a bufferevent for the tty, so we can keep better track of whatNicholas Marriott
is being written and when. Also a manpage typo fix from jmc@.
2017-02-10bring back r1.34 that was backed out for problems loading public keys:Damien Miller
translate OpenSSL error codes to something more meaninful; bz#2522 reported by Jakub Jelen, ok dtucker@ with additional fix from Jakub Jelen to solve the backout. bz#2525 bz#2523 re-ok dtucker@
2017-02-10Sanitise escape sequences in key comments sent to printf but preserveDamien Miller
valid UTF-8 when the locale supports it; bz#2520 ok dtucker@
2017-02-09When netcat was started with -Uz, the exit status was always 1. IfAlexander Bluhm
the unix connect is successful, let nc -z close the socket and exit with 0. OK jca@
2017-02-09Document that -x can take an ipv6 address enclosed in square brackets.Jeremie Courreges-Anglas
2017-02-09When getaddrinfo fails, print the requested host and port.Jeremie Courreges-Anglas
Should make debugging easier, especially when using -x literal_ipv6_address
2017-02-09No need to cast NULL when assigning it to a variable;Ingo Schwarze
from Christos Zoulas <christos at NetBSD>.
2017-02-09Improve clarity of some casts;Ingo Schwarze
from Christos Zoulas <christos at NetBSD>.
2017-02-09Be consistent in protecting __attribute__ attributes with __;Ingo Schwarze
from Christos Zoulas <christos @ NetBSD>.
2017-02-09Instead of numbering session groups, give them a name which may be givenNicholas Marriott
to -t instead of a target session. Also allow them to contain only one session.
2017-02-09Document refresh-client -C.Nicholas Marriott
2017-02-09Break the message storage function into its own function, useful forNicholas Marriott
debugging.
2017-02-09Don't lie about the default size in the man page.Nicholas Marriott
2017-02-09Combining characters need a full flush.Nicholas Marriott
2017-02-09When an ordinary (not collected) cell is received, we need to flush anyNicholas Marriott
delayed scrolling before drawing it.
2017-02-08Another helper function to write to terminal and log.Nicholas Marriott
2017-02-08Add a common function to invalidate all the terminal cached state.Nicholas Marriott
2017-02-08Do not adjust region lower by pane offset when scrolling up, it isNicholas Marriott
already an absolute position.
2017-02-08Avoid printf %s NULL. From semarie@, OK djm@Todd C. Miller
2017-02-08Avoid a busy loop in netcat's tls_close(). Reuse the tls_handshake()Alexander Bluhm
wrapper that calls poll(2) and handles the -w timeout. OK beck@
2017-02-08Avoid double close(2) in netcat. After every call to readwrite()Alexander Bluhm
there is already a close(2), so do not do it in readwrite(). OK beck@
2017-02-08window_copy_pagedown shouldn't reset the mode anymore, instead let theNicholas Marriott
caller do it so it can free the marks. Problem reported by attila at stalphonsos dot com.
2017-02-08Add support for scroll up escape sequence (CSI S) and use it whenNicholas Marriott
possible instead of sending individual line feeds.
2017-02-08Collect sequences of printable ASCII characters and process themNicholas Marriott
together instead of handling them one by one. This is significantly faster. Sequences are terminated when we reach the end of the line, fill the internal buffer, or a different character is seen by the input parser (an escape sequence, or UTF-8). Rather than writing collected sequences out immediately, hold them until it is necessary (another screen modification, or we consume all available data). This means we can discard changes that would have no effect (for example, lines that would just be scrolled off the screen or cleared). This reduces the total amount of data we write out to the terminal - not important for fast terminals, but a big help with slow (like xterm).
2017-02-08Fix clear start of line.Nicholas Marriott
2017-02-08Some other tidying bits.Nicholas Marriott
2017-02-08Add a helper to store a cell, and some tidying.Nicholas Marriott
2017-02-08Remove unnecessary duplicate check.Nicholas Marriott
2017-02-08Improve some of the logging on resize.Nicholas Marriott
2017-02-08Due to non-blocking sockets, tls_handshake() could wait in a busyAlexander Bluhm
loop. Use an additional poll(2) during the handshake and also respect the -w timeout option there. From Shuo Chen; OK beck@
2017-02-08Log size of output buffer as well.Nicholas Marriott
2017-02-08Trying to avoid the occasional newline by saving the last cell on screenNicholas Marriott
is not actually helping us much and just adds complexity, so don't bother.
2017-02-08Tweak how much we expand lines by.Nicholas Marriott
2017-02-08Remove event watermarks, don't work well enough to be worth it.Nicholas Marriott