summaryrefslogtreecommitdiff
path: root/system/busybox/0012-microcom-segfault.patch
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-02-22 22:51:35 -0600
committerKiyoshi Aman <kiyoshi.aman+adelie@gmail.com>2019-02-22 22:51:35 -0600
commit4618f5695b7bd00c07d656e965db11b31f0d8b36 (patch)
tree9a3b5f59245e5e3e1183fd56ae907a06c588d1f1 /system/busybox/0012-microcom-segfault.patch
parentd397ab02f9c6c4e5a0ac0a2d5331999d056ae27b (diff)
downloadpackages-4618f5695b7bd00c07d656e965db11b31f0d8b36.tar.gz
packages-4618f5695b7bd00c07d656e965db11b31f0d8b36.tar.bz2
packages-4618f5695b7bd00c07d656e965db11b31f0d8b36.tar.xz
packages-4618f5695b7bd00c07d656e965db11b31f0d8b36.zip
{system => legacy}/busybox: fucking inflatable fucking busybox
Diffstat (limited to 'system/busybox/0012-microcom-segfault.patch')
-rw-r--r--system/busybox/0012-microcom-segfault.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/system/busybox/0012-microcom-segfault.patch b/system/busybox/0012-microcom-segfault.patch
deleted file mode 100644
index 4789079b3..000000000
--- a/system/busybox/0012-microcom-segfault.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From fd8a0116a29ea4014fac7fbdba2636fc7b51ffc2 Mon Sep 17 00:00:00 2001
-From: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
-Date: Wed, 2 Aug 2017 23:36:08 +0200
-Subject: [PATCH] miscutils/microcom: Fixed segfault
-
-microcom did not check if required parameter TTY is present. Thus,
-bb_basename() was called with a NULL pointer if TTY was missing.
-This commit adds the missing check.
----
- miscutils/microcom.c | 5 +++++
- 1 file changed, 5 insertions(+)
-
-diff --git a/miscutils/microcom.c b/miscutils/microcom.c
-index 14b9f3baf..38f6425c1 100644
---- a/miscutils/microcom.c
-+++ b/miscutils/microcom.c
-@@ -78,6 +78,11 @@ int microcom_main(int argc UNUSED_PARAM, char **argv)
- // argc -= optind;
- argv += optind;
-
-+ if (*argv == NULL){
-+ bb_show_usage();
-+ return EXIT_FAILURE;
-+ }
-+
- // try to create lock file in /var/lock
- device_lock_file = (char *)bb_basename(argv[0]);
- device_lock_file = xasprintf("/var/lock/LCK..%s", device_lock_file);
---
-2.13.3
-