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

memory out of range #30

Open
legier opened this issue Jan 17, 2017 · 1 comment
Open

memory out of range #30

legier opened this issue Jan 17, 2017 · 1 comment

Comments

@legier
Copy link

legier commented Jan 17, 2017

I want to use slre in my embedded project, but when I use it I am falling into HardFalt interrupt because of memory corruption. I can't show any places, but when I comment all calls to slre_match method. everything is fine.

This is my example:
slre_cap CapturedExp[20];
(slre_match("([ ]*\r)", "diag\r", 5, CapturedExp, 10, SLRE_IGNORE_CASE)

@legier
Copy link
Author

legier commented Feb 9, 2017

Is one of this regex incorrect or not supported:
char* CModuleCommands::pCommands[] = {
(char*) "^[ ](18|reset )",
(char
) "^[ ](0|on )",
(char
) "^[ ](1|off )",
(char
) "^[ ](2|(b(lank)? ))",
(char
) "^[ ](3|(r(efresh)? ))",
(char
) "^[ ]*(4|config)",

(char*) "^[ ](10|dc)",
(char
) "^[ ](11|(l(ightness)? ))",
(char
) "^[ ](12|(g(amma)? ))",
(char
) "^[ ](13|(p(ixel|x)? ))",
(char
) "^[ ]*(14|(m(emory)? ))",

(char*) "^[ ]*(20|(a(nimation)? )",

(char*) "^[ ](30|diag)",
(char
) "^[ ]*(31|rng)",
};

because my problem is really annoying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant