1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

BUG#40482: server/mysqlbinlog crashes when reading invalid Incident_log_event

Problem: When an Incident_log_event contains a bad incident number on disk,
the server crashes with an assertion.
Fix: Don't validate input with assertions. Use errors.
This commit is contained in:
Sven Sandberg
2008-12-29 17:04:10 +01:00
parent c9245922d6
commit 05d7673340
9 changed files with 162 additions and 7 deletions

View File

@ -6,10 +6,10 @@
*/
enum Incident {
/** No incident */
INCIDENT_NONE,
INCIDENT_NONE = 0,
/** There are possibly lost events in the replication stream */
INCIDENT_LOST_EVENTS,
INCIDENT_LOST_EVENTS = 1,
/** Shall be last event of the enumeration */
INCIDENT_COUNT