mkulke / ftplibpp

Platform independent c++ library providing ftp client functionality.
GNU Lesser General Public License v2.1
291 stars 108 forks source link

Constructor bug - memory allocations #33

Open azuredarkness opened 4 years ago

azuredarkness commented 4 years ago

If one of the two allocs in the constructor fails, the code results in random memory access, and either the program will crash or the object will be left in an inconsistent state.