A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:
http://lists.mysql.com/commits/16369
ChangeSet@1.2558, 2006-12-04 13:28:38+04:00, ramil@mysql.com +5 -0
Fix for bug #22533: Traditional: Too-long bit value not rejected.
Storing >8 byte hexadecimal values in bigint fields we don't check data.
Fix: check if the data fits the {u}longlong range.

[6 Dec 2006 12:33]
Bugs System

A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:
http://lists.mysql.com/commits/16515
ChangeSet@1.2558, 2006-12-06 16:32:12+04:00, ramil@mysql.com +4 -0
Fix for bug #22533: Traditional: Too-long bit value not rejected.
Problem: storing >=8 byte hexadecimal values we don't check data.
Fix: check if the data fits the {u}longlong range.

Noted in 4.1.23, 5.0.36, 5.1.16 changelogs.
Storing values specified as hexadecimal values 64 or more bits long
into BIT(64), BIGINT, or BIGINT UNSIGNED columns did not raise any
warning or error if the value was out of range.
(4.1.23 entry does not mention BIT)