-
- Downloads
Restructured packet and command parsing
Prepared for parsing the new data formats. Data isn't formatted or parsed yet, though. No more memory leaks! Unfortunately each memory leak was replaced by a potential buffer overflow. Basically, the code was riddled with functions that accept a char ** data, which is malloced and then formatted. This was then leaked. Now, it accepts a char * data, which is allocated on the stack by the calling function. However, there is no bounds checking, because that is slightly more involved.
Showing
- groundStation/src/backend/backend.c 7 additions, 5 deletionsgroundStation/src/backend/backend.c
- groundStation/src/backend/communication.c 59 additions, 126 deletionsgroundStation/src/backend/communication.c
- groundStation/src/backend/communication.h 4 additions, 7 deletionsgroundStation/src/backend/communication.h
Please register or sign in to comment