[llvm-bugs] [Bug 25746] New: libFuzzer generated fuzzer does not properly generate base64 encoded output on Android 6.0

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Dec 4 13:18:37 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25746

            Bug ID: 25746
           Summary: libFuzzer generated fuzzer does not properly generate
                    base64 encoded output on Android 6.0
           Product: new-bugs
           Version: trunk
          Hardware: Other
                OS: other
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: danielaustin at google.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

In llvm/llvm/lib/Fuzzer/FuzzerIO.cpp, PrintFileAsBase64 assumes that the system
under test is using a base64 utility which acts the same manner as the GNU
coreutils base64. On android 6.0, the base64 utility does not accept -w 0 as 
valid, and fails with output: 

Base64: usage: base64 [-di] [-w COLUMNS] [FILE...]

Encode or decode in base64.

-d    decode
-i    ignore non-alphabetic characters
-w    wrap output at COLUMNS (default 76)

base64: -w < 1

This occurs upon generating a crashing test case, after the binary file is
output, and does not affect the binary file.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151204/e79aea07/attachment.html>


More information about the llvm-bugs mailing list