Browse Source

Merge pull request #79 from dibdot/master

Fix for format security bugs in etherwake package
lilik-openwrt-22.03
Hauke Mehrtens 11 years ago
parent
commit
05b3e9c0e0
2 changed files with 19 additions and 1 deletions
  1. +0
    -1
      net/etherwake/Makefile
  2. +19
    -0
      net/etherwake/patches/110-format_security_fix.patch

+ 0
- 1
net/etherwake/Makefile View File

@ -16,7 +16,6 @@ PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/e/etherwake
PKG_MD5SUM:=628e8b2a28d47f262e4c26c989402a59
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
PKG_CHECK_FORMAT_SECURITY:=0
include $(INCLUDE_DIR)/package.mk


+ 19
- 0
net/etherwake/patches/110-format_security_fix.patch View File

@ -0,0 +1,19 @@
--- a/ether-wake.c
+++ b/ether-wake.c
@@ -135,7 +135,7 @@ int main(int argc, char *argv[])
case 'D': debug++; break;
case 'i': ifname = optarg; break;
case 'p': get_wol_pw(optarg); break;
- case 'u': printf(usage_msg); return 0;
+ case 'u': printf("%s\n", usage_msg); return 0;
case 'v': verbose++; break;
case 'V': do_version++; break;
case '?':
@@ -144,7 +144,7 @@ int main(int argc, char *argv[])
if (verbose || do_version)
printf("%s\n", version_msg);
if (errflag) {
- fprintf(stderr, brief_usage_msg);
+ fprintf(stderr, "%s\n", brief_usage_msg);
return 3;
}

Loading…
Cancel
Save