[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 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html