[Libreoffice-bugs] [Bug 134516] Invalid string handling with random files

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Jul 17 18:43:50 UTC 2020


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

Terrence Enger <lo_bugs at iseries-guru.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lo_bugs at iseries-guru.com

--- Comment #1 from Terrence Enger <lo_bugs at iseries-guru.com> ---
Created attachment 163201
  --> https://bugs.documentfoundation.org/attachment.cgi?id=163201&action=edit
document with macro

jc_bourg, are you using LO Basic, a random file and the "put"
operation?

OpenOffice.org Macros Explained (OOME_3_0.pdf,
<http://www.pitonyak.org/OOME_3_0.pdf>), section 8.8 "Reading and
writing data" says of random files and operation "put":

    If the data variable is a Variant, an integer identifying the data
    type precedes the data.

and

    When Put places a string as a Variant, it actually writes the
    VarType, the string length, and then the string.

My experiment in a local build of commit e54ff4c1 on debian-buster
gives results like Andrew Pitonyak described.  Neither a String nor a
Variant shows truncation of the last two characters.  Macro "one" in
the attached demo01.odt is the experiment.


I am setting status NEEDINFO.  jc_bourg, please set bug status back to
UNCONFIRMED when you reply.

-- 
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/20200717/9714933f/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list