diff options
-rw-r--r-- | src/dabplus-enc.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dabplus-enc.cpp b/src/dabplus-enc.cpp index 7e30a79..76d61fc 100644 --- a/src/dabplus-enc.cpp +++ b/src/dabplus-enc.cpp @@ -464,6 +464,11 @@ int main(int argc, char *argv[]) return 1; } + if (padlen < 0) { + fprintf(stderr, "Invalid PAD length specified\n"); + return 1; + } + zmq::context_t zmq_ctx; zmq::socket_t zmq_sock(zmq_ctx, ZMQ_PUB); |