brintos

brintos / llvm-project-archived public Read only

0
0
Text · 923 B · e38edc6 Raw
16 lines · plain
1## Test reading an archive with malformed header.2# RUN: echo    "<bigaf>" > %t.a3# RUN: not llvm-ar tv %t.a 2>&1 | FileCheck --check-prefix=CHECK-HEADER %s4# CHECK-HEADER: truncated or malformed archive{{.*}}malformed AIX big archive: incomplete fixed length header5 6## Test reading an empty archive with first member's offset is not zero.7# RUN: echo    "<bigaf>" > %t.a8# RUN: echo -n "0                   0                   0                   128                 0                   0                   " >> %t.a9# RUN: not llvm-ar tv %t.a 2>&1 | FileCheck %s10 11# RUN: echo    "<bigaf>" > %t.a12# RUN: echo -n "0                   0                   0                   28                  0                   0                   " >> %t.a13# RUN: not llvm-ar tv %t.a 2>&1 | FileCheck %s14 15# CHECK: truncated or malformed archive{{.*}}malformed AIX big archive: remaining buffer is unable to contain next archive member16