diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-06-24 18:24:24 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-06-26 20:10:45 +0000 |
commit | eb7364fffe39c1aecddcab6b9cf238475fa2013c (patch) | |
tree | d99d1ac3ecb55bd186bbb0f4d01b7ef4567e2a80 /unodevtools | |
parent | 169e9fb16f025bc5791d3ea5242596e3dcc4f023 (diff) |
tdf#84834 sc: stricter type detection for dBASE files
The detection is rather sloppy, the bugdoc gets erroneously detected as
dBASE because it starts with '0', has a not-too-large header size at offset 4,
and a '\r' at a 32-byte alignment towards the start of the the not-too-large
header.
Add a plausibility check for the number of records in the file, which
helps for this bugdoc.
Change-Id: I466dfae18aa32fd62b79b9f524f22bea719721be
(cherry picked from commit 4e3ff19b33c84557fd20e68960499933b4e52638)
Reviewed-on: https://gerrit.libreoffice.org/26644
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'unodevtools')
0 files changed, 0 insertions, 0 deletions