strongswan / davici

Decoupled Asynchronous VICI
GNU Lesser General Public License v2.1
20 stars 17 forks source link

davici: Don't limit initially allocated buffer to 32 bytes #1

Closed tobiasbrunner closed 8 years ago

tobiasbrunner commented 8 years ago

If the passed name was longer than 30 bytes (not the case for the currently defined operations) this resulted in a buffer overflow during the memcpy() that's based on that original length and not the allocated length.