-
Notifications
You must be signed in to change notification settings - Fork 465
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
Assertion/Exception when using foundation with libsass 3.2.5 #1307
Comments
Seems valid; the memory access |
I would a test case for this. I was unable to reproduce it with the latest foundation. |
@driekus77 can you please confirm which version of foundation you are using. It should be in the bower.json or package.json in the foundation folder. |
This is blocked on waiting for a test case. |
I was able to compiled every 5.x release of foundation, include the latest master with LibSass 3.2.5 without this error. |
@driekus77 did you customize |
The upstream issue sass/libsass-net#25 suggests they did not. |
Its an assertion so probably you only see/discover it only when running libsass in debug. I tested it on Windows using Visual Studio 2013 to get libsass in debug Unfortunately I don't know the foundations version number anymore because I only have the .scss files. I can push the foundation scss files if you want? Remember that I tested it with libsass-net (C# wrapper arround libsass) |
Please push whatever you have, we need to reproduce this bug somehow... |
Ok I pushed my foundation Sass/Scss files to: Use default.scss as input for your test |
I overlooked something concerning my suggested fix. A few lines before the fix and right after the u.find_first_of...: string unit(u.substr(l, r - l)); <== r is also used and can be npos (huge number) But when I move the npos check up right after the u.find_first_of... Can somebody with domain knowledge please check if r needs to be checked sooner? Thanks & Greetings, Henry |
Please check the referenced commits: xzyfer@c45a702 (or on master: 0939984)
Then if you are worried about passing
Looks safe enough for me 😉 |
Aha sorry for the fuss didn't see youre commit. Only looked at the code in 3.5.2 release. Thanks for your quick responds. Greetings, Henry |
When importing foundation scss:
@import
'foundation/_settings',
'foundation'
;
ast.cpp line 674 exception
Number::Number
WRONG:
if (u[r] == '/') nominator = false;
if (r == string::npos) break;
else l = r + 1;
WORKS:
if (r == string::npos) break;
else if (u[r] == '/') nominator = false;
else l = r + 1;
r must be checked before it is used!
Hope somebody with more domain knowledge can check if my suggested fix is ok.
Greetings,
Henry
The text was updated successfully, but these errors were encountered: