diff options
author | Stefan Pöschel <github@basicmaster.de> | 2015-07-13 09:14:40 +0200 |
---|---|---|
committer | Stefan Pöschel <github@basicmaster.de> | 2015-07-13 09:14:40 +0200 |
commit | b08b2b54a3a7ae1c45f79d2656a96c26ea73786c (patch) | |
tree | 9cfe7bf0d6c1720c0159a820068c43969478b6b2 | |
parent | fdcaa6ea13f474a4e970f1a2265a281e3eb3d474 (diff) | |
download | fdk-aac-b08b2b54a3a7ae1c45f79d2656a96c26ea73786c.tar.gz fdk-aac-b08b2b54a3a7ae1c45f79d2656a96c26ea73786c.tar.bz2 fdk-aac-b08b2b54a3a7ae1c45f79d2656a96c26ea73786c.zip |
PAD: check PAD len
-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); |