From 6631d41c168547ccec25c2136d82a20fa59c9b54 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 1 Jan 2011 16:06:45 +0000 Subject: [PATCH] ber_flatten must return -1 on unmatched "{" "}" (ITS#6764) --- libraries/liblber/io.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libraries/liblber/io.c b/libraries/liblber/io.c index d84c1907cd..e2288fbf98 100644 --- a/libraries/liblber/io.c +++ b/libraries/liblber/io.c @@ -390,6 +390,11 @@ int ber_flatten2( return -1; } + /* unmatched "{" and "}" */ + if ( ber->ber_sos_ptr != NULL ) { + return -1; + } + if ( ber == NULL ) { /* ber is null, create an empty berval */ bv->bv_val = NULL; -- 2.39.5