| 78 | } |
| 79 | |
| 80 | const cmd_export_t * |
| 81 | pick_some_command(uint8_t datap) |
| 82 | { |
| 83 | const int ncmds = count_noparam_cmds(); |
| 84 | int i, r, idx = datap % (ncmds + 1); |
| 85 | |
| 86 | if (idx == ncmds) |
| 87 | return (0); |
| 88 | for (i = r = 0; core_cmds[i].name != NULL; i++) { |
| 89 | if (core_cmds[i].params[0].flags != 0) |
| 90 | continue; |
| 91 | if (r == idx) |
| 92 | return &core_cmds[i]; |
| 93 | r += 1; |
| 94 | } |
| 95 | abort(); |
| 96 | } |
| 97 | |
| 98 | int LLVMFuzzerTestOneInput(const char *data, size_t size) { |
| 99 | str buf; |
no test coverage detected