View Issue Details

IDProjectCategoryView StatusLast Update
0003307doodledoodledpublic2016-11-08 13:29
Reporterdcb314Assigned ToChristian Grothoff 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformMINGWOSMSOS Version
Product Version0.7.0 
Target VersionFixed in Version 
Summary0003307: [semaphore.c:389]: (warning) memset() called to fill 0 bytes of 'handle'.
Description
Source code is

#ifdef MINGW
  memset(handle, sizeof(pthread_t), 0);
#endif

This should be

#ifdef MINGW
  memset(handle, 0, sizeof(pthread_t));
#endif
Additional InformationI found this problem by using the static analyser cppcheck.
 
TagsNo tags attached.

Activities

Christian Grothoff

2014-02-06 14:31

manager   ~0008077

Should be harmless, nevertheless fixed in 32243.

Issue History

Date Modified Username Field Change
2014-02-05 12:17 dcb314 New Issue
2014-02-06 14:31 Christian Grothoff Note Added: 0008077
2014-02-06 14:31 Christian Grothoff Status new => resolved
2014-02-06 14:31 Christian Grothoff Resolution open => fixed
2014-02-06 14:31 Christian Grothoff Assigned To => Christian Grothoff
2016-08-15 22:38 gianjianne Tag Attached: urgent
2016-08-15 22:38 gianjianne Tag Attached: ****libWVStreamControlAPI_L3.so****
2016-11-08 13:29 Christian Grothoff Tag Detached: ****libWVStreamControlAPI_L3.so****
2016-11-08 13:29 Christian Grothoff Tag Detached: urgent