wimlib_join(): Fix buffer overrun when swm part 1 not specified
authorEric Biggers <ebiggers3@gmail.com>
Mon, 28 Apr 2014 17:52:21 +0000 (12:52 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 28 Apr 2014 17:52:21 +0000 (12:52 -0500)
commitf303b46312f8d8be4210fba66082d5a7572dbd70
tree49c36c3b652dedf6c0dee162f121d96728e5d59c
parent74d4d4b70eda3ab6e5f30e9d8c019034ce8fba15
wimlib_join():  Fix buffer overrun when swm part 1 not specified

Before checking for swm completeness, there can potentially be
(num_additional_swms + 1) parts that are *not* part 1, so make the
additional_swms array large enough.
src/join.c