1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

Merge pull request #1304 from ailin-nemui/fuzztest

fuzz test
This commit is contained in:
ailin-nemui 2021-04-20 10:27:32 +02:00 committed by GitHub
commit 9503d4bcba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,7 @@ on:
- 'src/irc/**/*.c'
- 'src/fe-common/irc/**/*.c'
- 'src/lib-config/**/*.c'
- 'src/fe-fuzz/**/*.c'
- 'tests/**/*.c'
- '.github/workflows/cifuzz.yml'
jobs:

View File

@ -186,9 +186,11 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
server_ref(server);
signal_emit("server incoming", 2, server, prefixedLine);
disconnected = server->disconnected;
/*
if (disconnected) {
server_connect_unref(server->connrec);
server_connect_unref(server->connrec);
}
*/
server_unref(server);
if (disconnected) {
/* reconnect */