summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Pöschel <github@basicmaster.de>2015-07-13 09:14:40 +0200
committerStefan Pöschel <github@basicmaster.de>2015-07-13 09:14:40 +0200
commitb08b2b54a3a7ae1c45f79d2656a96c26ea73786c (patch)
tree9cfe7bf0d6c1720c0159a820068c43969478b6b2
parentfdcaa6ea13f474a4e970f1a2265a281e3eb3d474 (diff)
downloadfdk-aac-b08b2b54a3a7ae1c45f79d2656a96c26ea73786c.tar.gz
fdk-aac-b08b2b54a3a7ae1c45f79d2656a96c26ea73786c.tar.bz2
fdk-aac-b08b2b54a3a7ae1c45f79d2656a96c26ea73786c.zip
PAD: check PAD len
-rw-r--r--src/dabplus-enc.cpp5
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);