I am using libupnp on a device with limited memory. I am trying to send it a large file using POST. In http_RecvPost, the data for the file is simultaneously written to a file and appended to a membuffer. The membuffer will grow until the memory is exhausted. Can this be changed to release the memory after it is saved to the file?
I saw there was a similar issue (ID: 3056713) using UpnpReadHttpGet to download large files.
This not only causes devices with limited memory problems, but it could also be used to attack any device using libupnp.
Log in to post a comment.