MaJerle / GSM_AT_commands_parser

Platform independent, ANSI C AT commands parser for SIMcom GSM modules
171 stars 95 forks source link

Overflowing memory #6

Open Hmissa opened 7 years ago

Hmissa commented 7 years ago

Hi Tilen,

My problem is when i want to list all SMS( I have 3 long SMS in my sim), I have an overflowing memory and the attribute of the GSM struct are modified.

Best Regards, Saif.

MaJerle commented 7 years ago

Means sms is not in ascii format. There is nothing I cam do. Sms length is max 160 bytes and zero at the end.

Hmissa commented 7 years ago

i mean if you can do a security allocation memory for the GSM struct

MaJerle commented 7 years ago

Everything I can easily do is to use malloc for addiitional allocation but the there is need for upgraded function because user has to clear memory after use.