Subject: | Crash due to invalid memory allocation |
In case of intensive btrieve operations (millions) and memory usage application crashes unexpectedly.
Module version 0.03, Active Perl v5.8.8 built for MSWin32-x86-multi-thread on Windows XP
The perl version is old, but i think this issue not related to perl version.
Fix:
short
Call( operation, posBlock, dataBuffer, dataLength, keyBuffer, keyNumber )
unsigned short operation
char* posBlock
char* dataBuffer
unsigned long dataLength
char* keyBuffer
short keyNumber
CODE:
RETVAL = BTRCALL( operation, posBlock, dataBuffer, &dataLength, keyBuffer, MAX_KEY_SIZE, keyNumber );
OUTPUT:
posBlock ;
dataBuffer SvCUR_set((SV*)ST(2),dataLength);
dataLength
keyBuffer ;
RETVAL