Issue 128541 - InputStreamToXInputStreamAdapter.readBytes() should read until the buffer is full, or the file ends, not while available() > 0
Summary: InputStreamToXInputStreamAdapter.readBytes() should read until the buffer is ...
Status: RESOLVED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P5 (lowest) Normal
Target Milestone: 4.1.14
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-22 11:14 UTC by damjan
Modified: 2022-10-31 09:36 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 damjan 2022-10-22 11:14:22 UTC
In main/javaunohelper/com/sun/star/lib/uno/adapter/InputStreamToXInputStreamAdapter.java, readBytes() should read until the buffer is full, or the file ends, not while available() > 0.
Comment 1 damjan 2022-10-22 11:14:44 UTC
Fixed by f04910427d25ede98b84b90df7cc5a12d1adc695, resolving fixed.
Comment 2 Matthias Seidel 2022-10-23 16:45:49 UTC
Cherry-picked for AOO42X with:
https://github.com/apache/openoffice/commit/a20732d5433a69623bce465cc72af0ea4a66856f
Comment 3 Matthias Seidel 2022-10-31 09:36:27 UTC
Cherry-picked for AOO41X with:
https://github.com/apache/openoffice/commit/239988383ad44f763e210d38864f46a27e0a9873