From: Nickolay S. <sk...@us...> - 2004-06-29 12:41:40
|
Build Version : T2.0.0.7881 Firebird 2.0 UNSTABLE (writeBuildNum.sh,v 1.7883 2004/06/29 12:41:28 skidder Exp ) Update of /cvsroot/firebird/firebird2/src/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7071 Modified Files: fb_string.h Log Message: Add forgotten (by me) length checks Index: fb_string.h =================================================================== RCS file: /cvsroot/firebird/firebird2/src/include/fb_string.h,v retrieving revision 1.22 retrieving revision 1.23 diff -b -U3 -r1.22 -r1.23 --- fb_string.h 26 Jun 2004 22:23:19 -0000 1.22 +++ fb_string.h 29 Jun 2004 12:41:22 -0000 1.23 @@ -95,6 +95,8 @@ stringBuffer = inlineBuffer; bufferSize = INLINE_BUFFER_SIZE; } else { + stringBuffer = NULL; // Be safe in case of exception + checkLength(len); stringBuffer = FB_NEW(getPool()) char_type[newSize]; bufferSize = newSize; } |