]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When extracting the capture buffer from a crashdump, only read the valid
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 29 Oct 2009 13:44:58 +0000 (13:44 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 29 Oct 2009 13:44:58 +0000 (13:44 +0000)
commit742765c971d5e82f122dcae4a6ad36d8e9993b40
treec6a941b890308ac677d9ee423ec805e5c8b2b558
parente5310f3310f45ec0b5067b66fdcf57d365eb86ee
When extracting the capture buffer from a crashdump, only read the valid
portion of the capture buffer (db_capture_bufoff vs db_capture_bufsize).
This could result in outputting garbage (e.g. lots of 'p' characters if
DIAGNOSTIC is enabled) after the end of the capture buffer.  While here,
fix a spelling nit.

Reported by: Mikolaj Golub  to my trociny of gmail
MFC after: 3 days
sbin/ddb/ddb_capture.c