Bug #11891 buffer overrun in isam/test3.c
Submitted: 12 Jul 2005 18:32 Modified: 16 Jul 2005 18:32
Reporter: [ name withheld ] Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server: ISAM storage engine Severity:S3 (Non-critical)
Version:4.1.12 OS:Any (all)
Assigned to: CPU Architecture:Any

[12 Jul 2005 18:32] [ name withheld ]
Description:
isam/test3.c has the same one-byte buffer overrun previously reported in myisam/mi_test3.c (bug #6782) and needs the same fix.  Hadn't noticed this at the time because we weren't building the isam code ...

How to repeat:
examine code: 11 bytes do not fit in a 10-byte buffer

Suggested fix:
The patch used for myisam was

-  strmov(record.text,"Testing...");
+  strnmov(record.text,"Testing...", sizeof(record.text));
[13 Jul 2005 0:47] MySQL Verification Team
Thank you for the bug report.