Bug #23180 wrong memset()
Submitted: 11 Oct 2006 15:47 Modified: 15 Nov 2006 11:08
Reporter: Arkadiusz Miskiewicz (Basic Quality Contributor) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Migration Toolkit Severity:S3 (Non-critical)
Version:trunk OS:
Assigned to: CPU Architecture:Any

[11 Oct 2006 15:47] Arkadiusz Miskiewicz
Description:
http://svn.mysql.com/svnpublic/mysql-migration-tool/trunk/source/agent/MNSocket.cc
contains:
memset(&addr, sizeof(struct sockaddr_in), 0);

Wrong order of arguments.

Spoted by google.

How to repeat:
less that file.

Suggested fix:
Change that to:
memset(&addr, 0, sizeof(struct sockaddr_in));
[11 Oct 2006 18:34] Sveta Smirnova
Thank you for the report.

Verified as described.
[15 Nov 2006 11:08] Michael G. Zinner
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release.

If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at

    http://dev.mysql.com/doc/en/installing-source.html