flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guest (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-34371) how TagEncoder handles duplicate define* tags
Date Sun, 15 Jun 2014 08:34:01 GMT
Guest created FLEX-34371:

             Summary: how TagEncoder handles duplicate define* tags
                 Key: FLEX-34371
                 URL: https://issues.apache.org/jira/browse/FLEX-34371
             Project: Apache Flex
          Issue Type: Bug
    Affects Versions: Apache Flex 4.12.0
            Reporter: Guest

Suppose there are two DefineEditText tags that are the same by .equals, and a TagEncoder handles
them. This writes them both to the SWF, but assigns them the same character ID. Adobe's Flash
player can load the SWF fine, but it causes swfdump to crash.

defineEditText(tag) in TagEncoder calls

int id = dict.add(tag);

When serializing the second DefineEditText, the Dictionary finds the first one and returns
its ID. Then, the defineEditText(tag) method writes the second copy with the first one's ID.

Expected result:
- it writes the duplicate with a new ID or
- it does not write anything and uses the first copy's ID for references to the second.

This message was sent by Atlassian JIRA

View raw message