Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infinite loop in EReg.map() #11748

Open
PaulPatat opened this issue Aug 22, 2024 · 0 comments
Open

infinite loop in EReg.map() #11748

PaulPatat opened this issue Aug 22, 2024 · 0 comments
Labels
platform-php Everything related to PHP

Comments

@PaulPatat
Copy link

This seems to cause an infinite loop on PHP.
The "a0" character probably came from a mysql import.

class Eregtest {
	public static function main():Void {
		final hex = "7b7b706f7274616c2e6e616d657d7d2220636c6173733d22746578742d6461726b223e3c7370616e20636c6173733d226661732066612d70686f6e65223e3c2f7370616e3ea0207b7b70686f6e652e6e756d6265727d7d3c2f613e3c2f703e0d0a3c2f616464726573733e";
		final text = php.Global.hex2bin(hex);
		trace(text);
		trace(~/\{\{(.*?)\}\}/g.map(text, (r) -> "huh"));
	}
}
@Simn Simn added the platform-php Everything related to PHP label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-php Everything related to PHP
Projects
None yet
Development

No branches or pull requests

2 participants