linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* btrfs-progs: minor buffer-overrun fixes (v2)
@ 2012-04-20 19:27 Jim Meyering
  2012-04-20 19:27 ` [PATCHv2 1/4] mkfs: use strdup in place of strlen,malloc,strcpy sequence Jim Meyering
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Jim Meyering @ 2012-04-20 19:27 UTC (permalink / raw)
  To: linux-btrfs

Same net result as before, but with the stray-parenthesis fix
moved to 2/4 where it belongs, rather than buried in 3/4.
Thanks to Josef for the reviews.

Also, I fixed this in 3/4:
-       args.name[BTRFS_PATH_NAME_MAX-1] = 0;
+       args.name[BTRFS_SUBVOL_NAME_MAX-1] = 0;

[PATCHv2 1/4] mkfs: use strdup in place of strlen,malloc,strcpy
[PATCHv2 2/4] restore: don't corrupt stack for a zero-length
[PATCHv2 3/4] avoid several strncpy-induced buffer overruns
[PATCHv2 4/4] mkfs: avoid heap-buffer-read-underrun for zero-length

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-06-11 12:06 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-20 19:27 btrfs-progs: minor buffer-overrun fixes (v2) Jim Meyering
2012-04-20 19:27 ` [PATCHv2 1/4] mkfs: use strdup in place of strlen,malloc,strcpy sequence Jim Meyering
2012-04-20 19:27 ` [PATCHv2 2/4] restore: don't corrupt stack for a zero-length command-line argument Jim Meyering
2012-04-20 19:27 ` [PATCHv2 3/4] avoid several strncpy-induced buffer overruns Jim Meyering
2012-06-06 19:31   ` Hugo Mills
2012-06-06 19:40     ` Hugo Mills
2012-06-06 21:08     ` Jim Meyering
2012-06-11 12:05     ` [PATCHv4 " Jim Meyering
2012-04-20 19:27 ` [PATCHv2 4/4] mkfs: avoid heap-buffer-read-underrun for zero-length "size" arg Jim Meyering
2012-06-06 19:35   ` Hugo Mills
2012-06-07 14:12     ` Jim Meyering

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).