Bug #27464 analyze server code for incorrect usage of off_t type
Submitted: 27 Mar 2007 9:52 Modified: 22 Oct 2019 12:04
Reporter: Sergey Vojtovich Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: CPU Architecture:Any

[27 Mar 2007 9:52] Sergey Vojtovich
Description:
This bug is reported per request from Magnus Svensson and relates to BUG#24566.

We need to make sure that we properly use offset type in the server code to avoid bugs like BUG#24566.

How to repeat:
At least relay logs and CSV engine seem to be affected, check rpl_rli.cc and ha_tina.cc/ha_tina.h.

Suggested fix:
We likely shouldn't use off_t at all. For mysys functions like my_seek/my_pread/my_pwrite we should use my_off_t instead. For low-level functions like lseek/pread/pwrite we should use os_off_t.
[27 Mar 2007 12:48] MySQL Verification Team
Thank you for the bug report.
[22 Oct 2019 12:04] Paul DuBois
Posted by developer:
 
Fixed in 8.0.19.

Code cleanup. No changelog entry required.