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:[email protected] <- remove h / usuń h
xmpp:[email protected] xmpp:[email protected]
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]