lzw216 / protoc-gen-as3

Automatically exported from code.google.com/p/protoc-gen-as3
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

AIR SDK failed to package AIR application #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Adobe Air SDK package ipa
2. SDK15 without -useLegacyAOT yes
3. SDK16 

What is the expected output? What do you see instead?
Compilation failed while executing : compile-abc

Please provide any additional information below.
TextFormat.as
The functoin skipWhitespace() has an infinite loop.
You can fix this the bug by Using:
private static function skipWhitespace(source:ISource):void {
        for (;; ) {
                const b:int = source.read()
                switch (b) {
                case 0x20:/* space */
                case 0x09:/* \t */
                case 0x0a:/* \n */
                case 0x0d:/* \r */
                        continue
                case 0x23:/* # */
                        for (;;) {
                                var isLineEnd:Boolean = false;
                                switch (source.read()) {
                                        case 0x0a:/* \n */
                                        case 0x0d:/* \r */
                                                isLineEnd = true;
                                                break;
                                        default:
                                                break;
                                }
                                if(isLineEnd)
                                {
                                        break;
                                }
                        }
                        break;
                default:
                        source.unread(b)
                        return
                }
        }
}

Original issue reported on code.google.com by shunchen...@gmail.com on 23 Jan 2015 at 12:26

GoogleCodeExporter commented 9 years ago
Fixed in 75e615583635

Original comment by pop.atry@gmail.com on 3 Feb 2015 at 10:35

GoogleCodeExporter commented 9 years ago
Thank you!

Original comment by pop.atry@gmail.com on 3 Feb 2015 at 10:37