[llvm-bugs] Issue 4187 in oss-fuzz: llvm/clang-proto-fuzzer: ASSERT: isa<X>(Val) && "cast<Ty>() argument of incompatible type!"

k… via monorail via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 13 10:26:23 PST 2017


Comment #2 on issue 4187 by kcc at google.com: llvm/clang-proto-fuzzer:  
ASSERT: isa<X>(Val) && "cast<Ty>() argument of incompatible type!"
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4187#c2

C reproducer (clang -c -O2):

void foo(int *a) {
   while ((a[1] + (0))) {
   }
   while (1) {
     if (1) {
       a[0] = 1;
       while (a[60]) {
         while (a[0]) {
           while ((a[1] + a[0])) {
             a[0] = (1 + a[60]);
           }
           while (a[0]) {
             while ((a[1] + a[0])) {
               a[1] = 1;
             }
             while ((1 + a[0])) {
               while ((a[1] + 1)) {
                 a[0] = 1;
               }
               while (a[0]) {
                 while (1) {
                   while (a[0]) {
                     while ((a[1] + a[0])) {
                       a[0] = (1 + a[60]);
                     }
                     while (a[0]) {
                       while ((a[1] + a[0])) {
                         a[0] = (1 + a[60]);
                       }
                       while (1) {
                         while (a[0]) {
                         }
                       }
                     }
                   }
                 }
               }
             }
           }
         }
       }
     } else {
     }
   }
}



-- 
You received this message because:
   1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20171113/fea656a8/attachment.html>


More information about the llvm-bugs mailing list