OSDN Git Service

Don't allow MemoryFiles of negative length.
authorNarayan Kamath <narayan@google.com>
Tue, 8 Apr 2014 15:10:52 +0000 (16:10 +0100)
committerNarayan Kamath <narayan@google.com>
Tue, 8 Apr 2014 15:14:10 +0000 (16:14 +0100)
commitf626ca2c96f629627a8df6944c9b0d774e6e67ae
tree997b18ade316ba1fc66910a292f50ac775ea68b9
parentdc97144b3f83bf6dae90493a6631afc6523dfce2
Don't allow MemoryFiles of negative length.

Prevents us from converting a (signed) jint into an
(unsigned) size_t and having horrible things happen.

Change-Id: I0f04e2eb9852ae7fc49b435fd0974f56e86751a4
core/java/android/os/MemoryFile.java