Michal Čihař wrote: > No, CurrentConfig is returned only in case of -1 (which is not the > case here), otherwise pointer to one of existing configuration arrays > (allocated in GSM_AllocStateMachine).
OK, I've missed this. > But from cfg=0x34 it looks like GSM_AllocStateMachine failed and > returned NULL, which is indeed not checked (just commiting this to > upstream). You're right. Calloc has failed. I've added some sizeof() lines. printf("GSM_Phone_N6510Data Size: %u\n", (unsigned int)sizeof(GSM_Phone_N6510Data)); generates: GSM_Phone_N6510Data Size: 878449328 > Do you have set some memory limit, so that malloc could fail? Nothing special that I know of. -- Marcin Szewczyk, Wodny http://wodny.org mailto:wo...@thlen.pl <- remove h / usuń h xmpp:wo...@ubuntu.pl xmpp:wo...@jabster.pl -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org