From: Ben Pfaff Date: Tue, 5 Dec 2006 05:39:29 +0000 (+0000) Subject: * missing-values.c (mv_resize): Don't write beyond end of the X-Git-Tag: v0.6.0~669 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c30159381976154fe825c4308bf83b24ea28782;p=pspp-builds.git * missing-values.c (mv_resize): Don't write beyond end of the allocated buffer when resizing a long string. --- diff --git a/src/data/ChangeLog b/src/data/ChangeLog index 70873e43..87d6803f 100644 --- a/src/data/ChangeLog +++ b/src/data/ChangeLog @@ -1,3 +1,8 @@ +Mon Dec 4 21:38:40 2006 Ben Pfaff + + * missing-values.c (mv_resize): Don't write beyond end of the + allocated buffer when resizing a long string. + Sat Dec 2 16:28:32 2006 Ben Pfaff Clean up identifier code: don't require identifier enumerations to diff --git a/src/data/missing-values.c b/src/data/missing-values.c index d3b872e0..928e80c9 100644 --- a/src/data/missing-values.c +++ b/src/data/missing-values.c @@ -328,7 +328,7 @@ void mv_resize (struct missing_values *mv, int width) { assert (mv_is_resizable (mv, width)); - if (width > mv->width) + if (width > mv->width && mv->type != MV_NONE) { int i;