1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00
Files
mariadb/mysys
Vladislav Vaintroub 57b4295d2b Bug#43932 myisam index corruption with large index and large
key_buffer_size.

The cause of corruption was number overflow when multiplying 
two ulong values, number of used keycache blocks with size
of a single block. The result of multiplication exceeded ulong 
range (4G) and this lead to incorrectly calculated  buffer offset
in the key cache.

The fix is to use size_t for multiplication result.

This patch also fixes pointless cast in safemalloc 
(size of allocated block to uint), that creates lot of false
alarm warnings when using big keycache (> 4GB) in debug mode.
2009-04-29 13:51:10 +02:00
..
2009-03-24 15:58:52 +02:00
2006-12-23 20:17:15 +01:00
2006-12-23 20:17:15 +01:00
2008-08-18 13:11:55 -04:00
2006-12-23 20:17:15 +01:00
2006-12-23 20:17:15 +01:00
2006-12-23 20:17:15 +01:00
2006-12-31 01:02:27 +01:00
2006-12-23 20:17:15 +01:00
2006-12-23 20:17:15 +01:00
2007-03-22 20:32:07 +02:00
2009-03-17 15:43:00 -04:00
2007-08-09 14:56:57 +02:00
2006-12-27 02:23:51 +01:00
2009-03-17 18:24:35 +01:00
2006-12-23 20:17:15 +01:00
2006-12-23 20:17:15 +01:00
2006-12-23 20:17:15 +01:00
2006-12-23 20:17:15 +01:00
2006-12-31 01:02:27 +01:00
2009-03-17 16:29:24 -04:00
2007-07-30 20:40:49 +02:00
2006-12-31 01:02:27 +01:00
2008-09-16 15:23:07 +02:00
2007-08-15 17:43:08 +04:00
2006-12-23 20:17:15 +01:00
2006-12-23 20:17:15 +01:00
2008-04-28 13:41:12 -04:00
2006-12-23 20:17:15 +01:00
2007-05-24 19:47:58 +03:00