<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:lo_bugs@iseries-guru.com" title="Terrence Enger <lo_bugs@iseries-guru.com>"> <span class="fn">Terrence Enger</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Invalid string handling with random files"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134516">bug 134516</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>lo_bugs@iseries-guru.com
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Invalid string handling with random files"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134516#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Invalid string handling with random files"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=134516">bug 134516</a>
              from <span class="vcard"><a class="email" href="mailto:lo_bugs@iseries-guru.com" title="Terrence Enger <lo_bugs@iseries-guru.com>"> <span class="fn">Terrence Enger</span></a>
</span></b>
        <pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=163201" name="attach_163201" title="document with macro">attachment 163201</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=163201&action=edit" title="document with macro">[details]</a></span>
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,
<<a href="http://www.pitonyak.org/OOME_3_0.pdf">http://www.pitonyak.org/OOME_3_0.pdf</a>>), 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.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>