Changeset [8e489a46965bbc3683cec7698ccaf71bb5855d2a] by Christophe Fergeau

November 6th, 2009 @ 04:45 AM

make sure 'length' is >=0 in afc_file_write

trying to write a negative amount of data doesn't make much sense, and bad
things will happen if we try to do that. Just treat negative length values
as an invalid argument. An alternative way of handling it would be to
silently return OK/0 bytes written.
http://github.com/MattColyer/libiphone/commit/8e489a46965bbc3683cec...

Committed by Christophe Fergeau

  • M src/AFC.c
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A project around supporting the iPhone in Linux.

See http://libimobiledevice.org