Issue 18901 - Get statement fails with Strings and when position is not specified
Summary: Get statement fails with Strings and when position is not specified
Status: ACCEPTED
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 RC3
Hardware: PC Linux, all
: P3 Trivial (vote)
Target Milestone: AOO PleaseHelp
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-01 17:47 UTC by andrew
Modified: 2017-05-20 11:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description andrew 2003-09-01 17:47:00 UTC
The Get statement expects the string length to precede a string. Put does not
add this, you must do this manually. If this is present, then there is no
problem. If, however, there is an incorrect string length, it will read in what
it can and then place garbage into the string variable causing OOo to sometimes
lockup.

I created a short binary file that contained the ASCII for "ABCDABCD" and told
it to read the string. It uses "AB" as the length. Probably not a problem
because it can not read past the end of the file. No error checking is done.

I also can not use 
Get #n,,i%

This leaves the file pointer at the end of the file and reads garbage.
Comment 1 ooo 2003-09-02 07:40:48 UTC
definitely not API methods, looks like StarBASIC runtime to me
Comment 2 ab 2003-09-03 15:54:21 UTC
-> OOo 2.0
Comment 3 ab 2003-09-03 16:17:03 UTC
Forgot to set to OOo 2.0
Comment 4 christof.pintaske 2004-06-17 17:08:51 UTC
cp: retargeted to Office-Later due to limited ressources
Comment 5 christof.pintaske 2004-06-17 17:09:26 UTC
.
Comment 6 Marcus 2017-05-20 11:30:02 UTC
Reset assigne to the default "issues@openoffice.apache.org".