Re: [Wireshark-dev] call to cf_read(cfile) corrupts stack

2006-10-04 Thread LEGO
Nope! I was running it from a TextWindow... where the button callback data was ep_allocated... ep_allocated memory got reused after cf_read() and so it crashed... On 10/2/06, LEGO [EMAIL PROTECTED] wrote: Hi folks, while writing an open_capture_file() function for lua I came up with an odd

[Wireshark-dev] call to cf_read(cfile) corrupts stack

2006-10-02 Thread LEGO
Hi folks, while writing an open_capture_file() function for lua I came up with an odd situation. When executing the following code more than once, during the cf_read call the stack gets overwritten. if (cf_open(cfile, fname, FALSE, err) != CF_OK) { return FALSE;