Hi,

src/core/CLucene/index/SegmentTermEnum.cpp : line 377

[code]
        //Instantiate the new buffer + 1 is needed for terminator '\0'
        if ( buffer == NULL )
            buffer = (TCHAR*)malloc(sizeof(TCHAR) * (bufferLength+1));
        else
            buffer = (TCHAR*)realloc(buffer, sizeof(TCHAR) *
(bufferLength+1));

        if ( copy || force_copy){
            //Copy the text of term into buffer
            _tcsncpy(buffer,_term->text(),bufferLength);
        }
[/code]

If malloc / realloc return NULL?
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers

Reply via email to