This is an automated email from the ASF dual-hosted git repository. joshtynjala pushed a commit to branch develop in repository https://gitbox.apache.org/repos/asf/royale-compiler.git
commit 79a61717e42033143a70ff6347ca5ad0a5bde854 Author: Josh Tynjala <[email protected]> AuthorDate: Mon Nov 27 13:56:53 2023 -0800 SWFReader: fix warning when reading SWF that contains EnableTelemetry tag without password --- compiler/src/main/java/org/apache/royale/swf/io/SWFReader.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/compiler/src/main/java/org/apache/royale/swf/io/SWFReader.java b/compiler/src/main/java/org/apache/royale/swf/io/SWFReader.java index 4f92749f2..48d4cec74 100644 --- a/compiler/src/main/java/org/apache/royale/swf/io/SWFReader.java +++ b/compiler/src/main/java/org/apache/royale/swf/io/SWFReader.java @@ -756,7 +756,12 @@ public class SWFReader implements ISWFReader, ITagContainer { // Read the reserved 2 bytes bitStream.readUI16(); - String password = bitStream.readString(); + String password = null; + // if the read-boundary was reached, there is no password + if (bitStream.getOffset() < bitStream.getReadBoundary()) + { + password = bitStream.readString(); + } return new EnableTelemetryTag(password); }
