[Libreoffice-bugs] [Bug 138691] New: Crash when trying to save a form using an image bigger than length of Binary fix field

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Dec 6 11:12:07 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=138691

            Bug ID: 138691
           Summary: Crash when trying to save a form using an image bigger
                    than length of Binary fix field
           Product: LibreOffice
           Version: 7.2.0.0.alpha0+ Master
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Base
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: serval2412 at yahoo.fr

Description:
On pc Debian x86-64 with master sources updated today, I got a crash when
trying to save a form using an image bigger than length of Binary fix field.

Steps to Reproduce:
1. Launch Base
2. Create Firebird embedded file (enable experimental features for
prerequisite) or open an existing Firebird embedded file (no need to enable
experimental features in this case)
3. Create a simple table TABLE1 with:
- id/INTEGER primary key
- f1/Binary (fix) BINARY (put 100 for length)

4. Create a form with TABLE1 with wizard:
 4.1 : select the brand new table and use both fields + Next
 4.2 : "Decide if you want to set up a subform" => Next
 4.3 : "Arrange the controls on your form" => Select the second one from left
of the first row + Finish
=> the form displays and you can enter data
5. type "1" in first field
6. right click on second field => "Insert Image from..." appears, select it
7. select an image of a length > 100
8. close form => dialog box asks to save
9. click "Yes"

Actual Results:
Crash

Expected Results:
No crash


Reproducible: Always


User Profile Reset: No



Additional Info:
With HSQLDB embedded, it's more difficult to reproduce this since by default
length for Binary (fix) BINARY is 2147483647 and you can't change it compared
with Firebird embedded database.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20201206/347be747/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list