OSDN Git Service

Avoid pathological behavior in OpenBSD's fread.
authorElliott Hughes <enh@google.com>
Tue, 2 Dec 2014 00:13:30 +0000 (16:13 -0800)
committerElliott Hughes <enh@google.com>
Tue, 2 Dec 2014 22:54:52 +0000 (14:54 -0800)
commit27d276f3a6d81d29fab13de96496efb7bc072773
treef15aacb70521bf895148e9741387c70f708e7c41
parent152e978f73fc6cd37d0d82de69f1cf8134b34b90
Avoid pathological behavior in OpenBSD's fread.

(cherry picked from commit 20841a137beac5caa824e3586c7bd91d879ff92e)

Bug: https://code.google.com/p/android/issues/detail?id=81155
Bug: 18556607
Change-Id: Ibdfebc20dce4c34ad565014523c9b074e90ea665
libc/Android.mk
libc/stdio/fread.c [moved from libc/upstream-openbsd/lib/libc/stdio/fread.c with 85% similarity]
tests/stdio_test.cpp