Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fix buffer overflow in syren utility

Patch for https://code.google.com/p/android/issues/detail?id=68268

A length check for the argv[2] was added in order to prevent buffer
overflow.  Also replace strcpy with strlcpy.

Signed-off-by: nks <nks@sixserv.org>
Change-Id: If65b83e9b658315c672e684f64e3ae00e69fac31
latest commit 3967f81b56
nks nks0ne authored April 12, 2014 Colin Cross committed April 13, 2014
..
Octocat-spinner-32 cp Ported "cp" from NetBSD to toolbox. July 13, 2012
Octocat-spinner-32 grep Fix grep -f. February 28, 2014
Octocat-spinner-32 Android.mk Declare (and simplify) uid_from_user. February 28, 2014
Octocat-spinner-32 MODULE_LICENSE_BSD auto import from //depot/cupcake/@135843 March 03, 2009
Octocat-spinner-32 NOTICE Correct copyright header for uptime and NOTICE July 27, 2010
Octocat-spinner-32 alarm.c auto import from //depot/cupcake/@135843 March 03, 2009
Octocat-spinner-32 bsd-compatibility.h Declare (and simplify) uid_from_user. February 28, 2014
Octocat-spinner-32 cat.c auto import from //depot/cupcake/@135843 March 03, 2009
Octocat-spinner-32 chcon.c Extend toolbox with SE Android support. February 03, 2012
Octocat-spinner-32 chmod.c Add -R to chmod July 14, 2010
Octocat-spinner-32 chown.c Switch to BSD chown (for -R, primarily). February 28, 2014
Octocat-spinner-32 clear.c Added clear command to toolbox August 07, 2012
Octocat-spinner-32 cmp.c Add missing headers for compilation on x86 targets November 17, 2010
Octocat-spinner-32 date.c Move date off the non-portable bionic32 'strtotimeval'. April 07, 2014
Octocat-spinner-32 dd.c system/core 64-bit cleanup. January 16, 2014
Octocat-spinner-32 dd.h Enable conv=fdatasync in dd. May 29, 2012
Octocat-spinner-32 df.c Fixed improper size displaying in 'df' utility October 02, 2012
Octocat-spinner-32 dmesg.c toolbox/dmesg: do not hardcode KLOG_BUF_LEN April 01, 2013
Octocat-spinner-32 du.c Make usage() static in du.c to avoid conflicts August 13, 2012
Octocat-spinner-32 dynarray.c toolbox: make getprop print a sorted list of properties January 08, 2011
Octocat-spinner-32 dynarray.h toolbox: make getprop print a sorted list of properties January 08, 2011
Octocat-spinner-32 exists.c auto import from //depot/cupcake/@135843 March 03, 2009
Octocat-spinner-32 getenforce.c Extend toolbox with SE Android support. February 03, 2012
Octocat-spinner-32 getevent.c system/core 64-bit cleanup. January 16, 2014
Octocat-spinner-32 getevent.h Enhance getevent to print event labels. June 15, 2011
Octocat-spinner-32 getprop.c Fix getprop Format February 14, 2011
Octocat-spinner-32 getsebool.c Extend toolbox with SE Android support. February 03, 2012
Octocat-spinner-32 hd.c Fix hd command so it doesn't error out on EOF January 12, 2012
Octocat-spinner-32 id.c Remove HAVE_SELINUX guards October 16, 2012
Octocat-spinner-32 ifconfig.c toolbox: ifconfig: Implement mtu setting, plus setting interface addr… May 14, 2009
Octocat-spinner-32 iftop.c auto import from //depot/cupcake/@135843 March 03, 2009
Octocat-spinner-32 insmod.c system/core 64-bit cleanup. January 16, 2014
Octocat-spinner-32 ioctl.c Add missing headers for compilation on x86 targets November 17, 2010
Octocat-spinner-32 ionice.c system: Add support for getting/setting i/o priorities and include a … February 25, 2010
Octocat-spinner-32 kill.c Conditionally use SIGSTKFLT August 01, 2012
Octocat-spinner-32 ln.c auto import from //depot/cupcake/@135843 March 03, 2009
Octocat-spinner-32 load_policy.c Extend toolbox with SE Android support. February 03, 2012
Octocat-spinner-32 log.c Move liblog headers to system/core/include/log July 24, 2013
Octocat-spinner-32 ls.c toolbox: ls: 64 bit compile warnings March 14, 2014
Octocat-spinner-32 lsmod.c auto import from //depot/cupcake/@135843 March 03, 2009
Octocat-spinner-32 lsof.c fix: making lsof show devies and loaded .so file names correctly March 04, 2014
Octocat-spinner-32 lsusb.c toolbox: add verbose option for lsusb December 09, 2010
Octocat-spinner-32 md5.c Add md5 command to toolbox. January 11, 2012
Octocat-spinner-32 mkdir.c Add -p support to mkdir July 14, 2010
Octocat-spinner-32 mkswap.c Remove unused #includes of <asm/page.h>. February 24, 2014
Octocat-spinner-32 mount.c Merge "fs_mgr: make block devices read-only" April 25, 2013
Octocat-spinner-32 mv.c auto import from //depot/cupcake/@135843 March 03, 2009
Octocat-spinner-32 nandread.c Remove a pre-uapi hack from nandread. February 07, 2014
Octocat-spinner-32 netstat.c Fixed reversed output in netstat Recv-Q Send-Q columns June 03, 2013
Octocat-spinner-32 newfs_msdos.c system/core 64-bit cleanup. January 16, 2014
Octocat-spinner-32 notify.c Add missing headers for compilation on x86 targets November 17, 2010
Octocat-spinner-32 printenv.c auto import from //depot/cupcake/@135843 March 03, 2009
Octocat-spinner-32 ps.c Add get_sched_policy_name() and use in ps and top March 15, 2012
Octocat-spinner-32 r.c Fix 'r' for LP64. January 17, 2014
Octocat-spinner-32 readlink.c Add standard options to readlink August 22, 2013
Octocat-spinner-32 readtty.c auto import from //depot/cupcake/@135843 March 03, 2009
Octocat-spinner-32 renice.c toolbox: renice: Add -t TYPE parameter and switch to getopt January 22, 2013
Octocat-spinner-32 restorecon.c Add -D option to restorecon for relabeling /data/data. February 18, 2014
Octocat-spinner-32 rm.c Do not exit early on errors when -f is specified June 26, 2013
Octocat-spinner-32 rmdir.c auto import from //depot/cupcake/@135843 March 03, 2009
Octocat-spinner-32 rmmod.c toolbox: rmmod: fix module unloading May 15, 2012
Octocat-spinner-32 rotatefb.c auto import from //depot/cupcake/@135843 March 03, 2009
Octocat-spinner-32 route.c Userland support for VM interconnection July 15, 2010
Octocat-spinner-32 runcon.c Extend toolbox with SE Android support. February 03, 2012
Octocat-spinner-32 schedtop.c toolbox: schedtop 64 bit build issue March 13, 2014
Octocat-spinner-32 sendevent.c auto import from //depot/cupcake/@135843 March 03, 2009
Octocat-spinner-32 setenforce.c Make setenforce usage function static. August 13, 2012
Octocat-spinner-32 setkey.c auto import from //depot/cupcake/@135843 March 03, 2009
Octocat-spinner-32 setprop.c auto import from //depot/cupcake/@135843 March 03, 2009
Octocat-spinner-32 setsebool.c Change setsebool syntax to be consistent with other init built-ins. December 13, 2012
Octocat-spinner-32 sleep.c auto import from //depot/cupcake/@135843 March 03, 2009
Octocat-spinner-32 smd.c Automated import from //branches/master/...@142981,142981 March 26, 2009
Octocat-spinner-32 start.c Restart surfaceflinger with stop/start too. March 07, 2011
Octocat-spinner-32 stop.c Restart surfaceflinger with stop/start too. March 07, 2011
Octocat-spinner-32 swapoff.c Remove unused #includes of <asm/page.h>. February 24, 2014
Octocat-spinner-32 swapon.c Remove unused #includes of <asm/page.h>. February 24, 2014
Octocat-spinner-32 sync.c auto import from //depot/cupcake/@135843 March 03, 2009
Octocat-spinner-32 syren.c Fix buffer overflow in syren utility April 13, 2014
Octocat-spinner-32 toolbox.c auto import from //depot/cupcake/@135843 March 03, 2009
Octocat-spinner-32 top.c Add get_sched_policy_name() and use in ps and top March 15, 2012
Octocat-spinner-32 touch.c Update the touch command to take a human readable timestamp June 26, 2013
Octocat-spinner-32 uid_from_user.c Declare (and simplify) uid_from_user. February 28, 2014
Octocat-spinner-32 umount.c Show why umount failed. July 14, 2011
Octocat-spinner-32 uptime.c toolbox: uptime: use clock_gettime() on devices without /dev/alarm December 17, 2013
Octocat-spinner-32 vmstat.c vmstat: Fix -n flag July 10, 2012
Octocat-spinner-32 watchprops.c toolbox: reimplement watchprops using __system_property_foreach() June 18, 2013
Octocat-spinner-32 wipe.c Try to unmount writable filesystems when rebooting March 10, 2011
Something went wrong with that request. Please try again.