mirror of
https://github.com/revanced/smali.git
synced 2025-05-16 14:17:04 +02:00
Don't allow strings or chars to span newlines
git-svn-id: https://smali.googlecode.com/svn/trunk@747 55b6fa8a-2a1e-11de-a435-ffa8d773f76a
This commit is contained in:
parent
b9f0c569ea
commit
35bfbe82f0
@ -270,6 +270,7 @@ Type = {PrimitiveType} | {ClassDescriptor} | {ArrayDescriptor}
|
||||
setStringOrCharError("Invalid escape sequence " + yytext());
|
||||
}
|
||||
|
||||
[\r\n] { return invalidStringOrChar("Unterminated string literal"); }
|
||||
<<EOF>> { return invalidStringOrChar("Unterminated string literal"); }
|
||||
}
|
||||
|
||||
@ -306,6 +307,7 @@ Type = {PrimitiveType} | {ClassDescriptor} | {ArrayDescriptor}
|
||||
setStringOrCharError("Invalid escape sequence " + yytext());
|
||||
}
|
||||
|
||||
[\r\n] { return invalidStringOrChar("Unterminated character literal"); }
|
||||
<<EOF>> { return invalidStringOrChar("Unterminated character literal"); }
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user