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

[I realized I'd need this v3 as I was falling asleep last night. ]
Same net effect as v2, but bisectable, now that the fix

-       args.name[BTRFS_PATH_NAME_MAX-1] = 0;
+       args.name[BTRFS_SUBVOL_NAME_MAX-1] = 0;

is applied to 3/4, rather than to 4/4.

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

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

end of thread, other threads:[~2012-04-21 10:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-21  7:50 btrfs-progs: minor buffer-overrun fixes (v3) Jim Meyering
2012-04-21  7:50 ` [PATCHv3 1/4] mkfs: use strdup in place of strlen,malloc,strcpy sequence Jim Meyering
2012-04-21  7:50 ` [PATCHv3 2/4] restore: don't corrupt stack for a zero-length command-line argument Jim Meyering
2012-04-21  7:50 ` [PATCHv3 3/4] avoid several strncpy-induced buffer overruns Jim Meyering
2012-04-21  7:50 ` [PATCHv3 4/4] mkfs: avoid heap-buffer-read-underrun for zero-length "size" arg Jim Meyering
2012-04-21 10:14   ` Accidental use of mkfs.btrfs -L ... recoverable? Andreas Nyback

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).