[MDEV-2376] LP:893522 - Issues in source code Created: 2011-11-22 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Trivial |
| Reporter: | Andey Karpov (Inactive) | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
I checked the MariaDB project using the PVS-Studio static code analyzer. You may review other odd fragments by downloading PVS-Studio from here: I can also give you a registration key for some time. ----------- struct win32op { void enum enum_mysql_timestamp_type static typedef UINT_PTR SOCKET; #define my_socket SOCKET struct st_vio static void libevent_connection_close(THD *thd) ... int get_mysql_service_properties(...) ... static bool read_texts(...) Need break operator. static int rr_cmp(uchar *a,uchar *b) Check: — Andrey Karpov, MVP |
| Comments |
| Comment by Elena Stepanova [ 2012-01-12 ] |
|
Re: Issues in source code |
| Comment by Sergei Golubchik [ 2012-01-12 ] |
|
Re: Issues in source code All fixed [almost]. Now, if you're interested, here's a reply to every found problem, one by one: 1. wrong memset in libevent. not fixed. the line is obviously wrong, but that memory is freed on the next line, so memset is not needed at all. So, as libevent is a third-party library and we'd prefer not to deviate from the upstream, I didn't correct this issue. 2. (in my_time.c) Already fixed. About two months ago I've looked at what you've found in MySQL code (as listed in the article on viva64.com) and fixed all that was applicable. 3. (in opt_subselect.cc) Fixed. 4. (in scheduler.cc) Fixed. 5. (in winservice.c) Fixed. 6. (in derror.c) Already fixed. 7. (in records.cc) Already fixed. It was in your MySQL defect list. |
| Comment by Rasmus Johansson (Inactive) [ 2012-02-20 ] |
|
Launchpad bug id: 893522 |