diff --git a/Makefile b/Makefile index e78c0fa..cbf9dc6 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ CC?=gcc CFLAGS_DEV=-DJB_PRESET_DEBUG -ggdb -fsanitize=address -Og -CFLAGS_RELEASE=-O3 -march=native -mtune=native -fgraphite-identity -flto +CFLAGS_RELEASE=-O2 -ggdb CFLAGS+=-pipe -Wall -Wextra -Wshadow -pedantic -std=c99 diff --git a/wire.c b/wire.c index 98a29b0..e8b8640 100644 --- a/wire.c +++ b/wire.c @@ -62,9 +62,6 @@ char *wire_get_string_impl(wire_context_t *c, bool as_signature) } char *str = (char *)&c->data[c->byte_cursor]; - if (strlen(str) != len) { - return NULL; - } c->byte_cursor = new_cursor;