summaryrefslogtreecommitdiff
path: root/audio/faad
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2003-06-15 00:29:36 +0000
committerKris Kennaway <kris@FreeBSD.org>2003-06-15 00:29:36 +0000
commit5a91ab6dcc884434efd26193df1ebd053fed533a (patch)
treee80bc5cebd6a1149ca120b8a214e3f08bdde8be6 /audio/faad
parentUpdate to version 2.7.0. (diff)
Avoid buffer overflow in option processing and bump PORTREVISION.
Obtained from: OpenBSD
Notes
Notes: svn path=/head/; revision=82995
Diffstat (limited to 'audio/faad')
-rw-r--r--audio/faad/Makefile1
-rw-r--r--audio/faad/files/patch-frontend_main_c39
2 files changed, 40 insertions, 0 deletions
diff --git a/audio/faad/Makefile b/audio/faad/Makefile
index 4643e06d7e5c..5cc46ba973b7 100644
--- a/audio/faad/Makefile
+++ b/audio/faad/Makefile
@@ -7,6 +7,7 @@
PORTNAME= faad2
PORTVERSION= 1.1
+PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://faac.sourceforge.net/files/
diff --git a/audio/faad/files/patch-frontend_main_c b/audio/faad/files/patch-frontend_main_c
new file mode 100644
index 000000000000..7d2346cedb55
--- /dev/null
+++ b/audio/faad/files/patch-frontend_main_c
@@ -0,0 +1,39 @@
+$OpenBSD: patch-frontend_main_c,v 1.3 2003/04/26 20:42:00 avsm Exp $
+--- frontend/main.c.orig Sat Apr 26 21:32:51 2003
++++ frontend/main.c Sat Apr 26 21:33:44 2003
+@@ -542,7 +542,7 @@ int main(int argc, char *argv[])
+ case 's':
+ if (optarg) {
+ char dr[10];
+- if (sscanf(optarg, "%s", dr) < 1) {
++ if (sscanf(optarg, "%9s", dr) < 1) {
+ def_srate = 0;
+ } else {
+ def_srate = atoi(dr);
+@@ -552,7 +552,7 @@ int main(int argc, char *argv[])
+ case 'f':
+ if (optarg) {
+ char dr[10];
+- if (sscanf(optarg, "%s", dr) < 1) {
++ if (sscanf(optarg, "%9s", dr) < 1) {
+ format = 1;
+ } else {
+ format = atoi(dr);
+@@ -564,7 +564,7 @@ int main(int argc, char *argv[])
+ case 'b':
+ if (optarg) {
+ char dr[10];
+- if (sscanf(optarg, "%s", dr) < 1) {
++ if (sscanf(optarg, "%9s", dr) < 1) {
+ outputFormat = FAAD_FMT_16BIT; /* just use default */
+ } else {
+ outputFormat = atoi(dr);
+@@ -576,7 +576,7 @@ int main(int argc, char *argv[])
+ case 'l':
+ if (optarg) {
+ char dr[10];
+- if (sscanf(optarg, "%s", dr) < 1) {
++ if (sscanf(optarg, "%9s", dr) < 1) {
+ object_type = LC; /* default */
+ } else {
+ object_type = atoi(dr);