PHP :: Bug #6852 :: Misc. bugs
| Bug #6852 | Misc. bugs | ||||
|---|---|---|---|---|---|
| Submitted: | 2000-09-22 08:21 UTC | Modified: | 2001-12-31 07:57 UTC | ||
| From: | kpeters at otaksoft dot com | Assigned: | vlad (profile) | ||
| Status: | Closed | Package: | dBase related | ||
| PHP Version: | 4.0.2 | OS: | FreeBSD 4.0 | ||
| Private report: | No | CVE-ID: | None | ||
[2000-09-22 08:21 UTC] kpeters at otaksoft dot com
//------------------------------------------------------ Bug 1 //------------------------------------------------------ dbase.c, line 622 reads: dbh->db_hlen = sizeof(struct dbf_dhead) + 2 + num_fields * sizeof(struct dbf_dfield); Should read: dbh->db_hlen = sizeof(struct dbf_dhead) + 1 + num_fields * sizeof(struct dbf_dfield); Reason: There is only *one* header record terminator byte (0xD) //------------------------------------------------------ Bug 2 //------------------------------------------------------ dbase.c, line 683 reads: cur_f->db_flen = 9; Should read: cur_f->db_flen = 10; Reason: Memo refs in Xbase are always of length 10 //------------------------------------------------------ Bug 3 //------------------------------------------------------ dbase.c, line 288: Code needs to be inserted below here that truncates the dbf file if deleted records have been encountered, i.e. if rec_cnt <> new_cnt. For this, pack_dbf would need to return a 'trunc_required' flag. Code could also sit in dbf_rec.c function pack_dbf
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2000-09-24 16:34 UTC] jmoore@php.net
[2001-12-31 05:34 UTC] vlad@php.net
[2001-12-31 07:57 UTC] vlad@php.net