Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:GA
coreutils-testsuite.1874
coreutils-avoid_sizeof_charPP__static_analysis_...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File coreutils-avoid_sizeof_charPP__static_analysis_warning.patch of Package coreutils-testsuite.1874
commit 02807c611efa0d2052c4d2f852a84b22c49d9e52 Author: Bernhard Voelker <mail@bernhard-voelker.de> Date: Wed Apr 16 10:43:09 2014 +0200 maint: df: avoid sizeof(char**) static analysis warning * src/df.c (alloc_table_row): Use the size of char** to enlarge the table. Spotted by Coverity. diff --git a/src/df.c b/src/df.c index 3036c74..e763943 100644 --- a/src/df.c +++ b/src/df.c @@ -290,7 +290,7 @@ static void alloc_table_row (void) { nrows++; - table = xnrealloc (table, nrows, sizeof (char *)); + table = xnrealloc (table, nrows, sizeof (char **)); table[nrows - 1] = xnmalloc (ncolumns, sizeof (char *)); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor