[MDEV-11707] Fix incorrect memset() for structures containing dynamic class GenericPolicy<TTASEventMutex<GenericPolicy> >'; vtable Created: 2017-01-03 Updated: 2017-02-06 Resolved: 2017-02-06 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB, Storage Engine - XtraDB |
| Affects Version/s: | 10.1 |
| Fix Version/s: | 10.1.22, 10.2.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Jan Lindström (Inactive) | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | 10.2-rc | ||
| Comments |
| Comment by Jan Lindström (Inactive) [ 2017-01-03 ] | |||||
|
storage/innobase/buf/buf0mtflu.cc:489:9: warning: | |||||
| Comment by Jan Lindström (Inactive) [ 2017-01-23 ] | |||||
|
http://lists.askmonty.org/pipermail/commits/2017-January/010483.html | |||||
| Comment by Marko Mäkelä [ 2017-01-30 ] | |||||
|
I think that a much better fix is to backport this one from 10.2:
| |||||
| Comment by Jan Lindström (Inactive) [ 2017-02-06 ] | |||||
|
Your suggested fix looks good but for GA-release I rather apply minimal changes. commit e53dfb24be73a204b4ee8efee6c07e1b13200052 dynamic class GenericPolicy<TTASEventMutex<GenericPolicy> >'; vtable Instead using mem_heap_alloc and memset, use mem_heap_zalloc |