diff options
author | Dan Albert <danalbert@google.com> | 2015-05-19 18:17:31 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-06-01 11:28:13 -0700 |
commit | 5f3e19dbbeb851fff5cf7f9869d344feca479413 (patch) | |
tree | f83802769593c7d7a534d51ad3dcfddb71557d40 /libc/arch-x86 | |
parent | ca10ac6dd45f73752e8822fee606d83116a5721a (diff) | |
download | bionic-5f3e19dbbeb851fff5cf7f9869d344feca479413.tar.gz bionic-5f3e19dbbeb851fff5cf7f9869d344feca479413.tar.bz2 bionic-5f3e19dbbeb851fff5cf7f9869d344feca479413.zip |
Fix error handling for negative size in ftruncate.
Bug: 21309901
Change-Id: I54692ab8105dd09db6af7a2c0894a17bdd118aa0
(cherry picked from commit c05554ec5c9aff5e0f1e83de9bb62c3569eecca2)
Diffstat (limited to 'libc/arch-x86')
-rw-r--r-- | libc/arch-x86/syscalls/ftruncate.S | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/libc/arch-x86/syscalls/ftruncate.S b/libc/arch-x86/syscalls/ftruncate.S deleted file mode 100644 index 78d1e184f..000000000 --- a/libc/arch-x86/syscalls/ftruncate.S +++ /dev/null @@ -1,26 +0,0 @@ -/* Generated by gensyscalls.py. Do not edit. */ - -#include <private/bionic_asm.h> - -ENTRY(ftruncate) - pushl %ebx - .cfi_def_cfa_offset 8 - .cfi_rel_offset ebx, 0 - pushl %ecx - .cfi_adjust_cfa_offset 4 - .cfi_rel_offset ecx, 0 - mov 12(%esp), %ebx - mov 16(%esp), %ecx - movl $__NR_ftruncate, %eax - int $0x80 - cmpl $-MAX_ERRNO, %eax - jb 1f - negl %eax - pushl %eax - call __set_errno_internal - addl $4, %esp -1: - popl %ecx - popl %ebx - ret -END(ftruncate) |