roleoroleo / onvif_simple_server

Light implementation of an onvif server intended for use in resource-constrained devices
GNU General Public License v3.0
20 stars 7 forks source link

Fixed realloc handling of input #6

Closed Sparpet closed 1 month ago

Sparpet commented 1 month ago

After realloc the memory address of the input buffer can change , if this happens, trying to access the input buffer causes a segmentation fault.

Added a line to update the pointer after realloc to avoid reading old address and avoid the issue.

roleoroleo commented 1 month ago

Thank you for your pr.