timwr / CVE-2016-5195

CVE-2016-5195 (dirtycow/dirtyc0w) proof of concept for Android
959 stars 395 forks source link

Mention in the README that the source size must be <= the destination size #24

Closed refi64 closed 7 years ago

refi64 commented 8 years ago

I couldn't figure out what I was doing wrong, then I realized that the exploit will trim the source's file size to the destination's current file size. So, if the source is 30 bytes, but the destination is 20 bytes, then only the first 20 bytes of the source will get copied.

IMO it's worth adding this to the README somewhere.

timwr commented 7 years ago

I've added a warning for this. Many thanks :)