You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've cloned the master of today build with MSVC and removed the warnings and switched on Code Analysis. This code analysis returns some possible issues:
c:\atwork\develop\dotsass\libsass\src\ast.cpp(35): warning C6287: Redundant code: the left and right sub-expressions are identical.
c:\atwork\develop\dotsass\libsass\src\ast.cpp(679): warning C6011: Dereferencing NULL pointer 'l'.
c:\atwork\develop\dotsass\libsass\src\ast.cpp(726): warning C6287: Redundant code: the left and right sub-expressions are identical.
c:\atwork\develop\dotsass\libsass\src\ast.cpp(1146): warning C6011: Dereferencing NULL pointer 'c'.
c:\atwork\develop\dotsass\libsass\src\ast.cpp(1158): warning C6011: Dereferencing NULL pointer 'pIter'. See line 1146 for an earlier location where this can occur
c:\atwork\develop\dotsass\libsass\src\ast.cpp(1686): warning C28182: Dereferencing NULL pointer. 'key' contains the same NULL value as 'v_key' did.
c:\atwork\develop\dotsass\libsass\src\ast.cpp(1709): warning C28182: Dereferencing NULL pointer. 'item' contains the same NULL value as 'v_val=dynamic_cast<Sass::Value *>item, v_val' did.
c:\atwork\develop\dotsass\libsass\src\context.cpp(152): warning C6001: Using uninitialized memory '_strings.'.
c:\atwork\develop\dotsass\libsass\src\context.cpp(150): warning C6001: Using uninitialized memory '_sources.'.
c:\atwork\develop\dotsass\libsass\src\eval.cpp(719): warning C6011: Dereferencing NULL pointer 'value'.
c:\atwork\develop\dotsass\libsass\src\eval.cpp(1103): warning C28182: Dereferencing NULL pointer. 'lhs' contains the same NULL value as 'l' did.
c:\atwork\develop\dotsass\libsass\src\eval.cpp(1104): warning C28182: Dereferencing NULL pointer. 'rhs' contains the same NULL value as 'r' did.
c:\atwork\develop\dotsass\libsass\src\eval.cpp(1106): warning C6011: Dereferencing NULL pointer 'r'. See line 1104 for an earlier location where this can occur
c:\atwork\develop\dotsass\libsass\src\expand.cpp(134): warning C28182: Dereferencing NULL pointer. 'stm' contains the same NULL value as 'dec=static_cast<Sass::Declaration *>stm, dec' did.
c:\atwork\develop\dotsass\libsass\src\file.cpp(313): warning C6031: Return value ignored: 'ReadFile'.
c:\atwork\develop\dotsass\libsass\src\json.cpp(115): warning C6308: 'realloc' might return null pointer: assigning null pointer to 'sb->start', which is passed as an argument to 'realloc', will cause the original memory block to be leaked.
c:\atwork\develop\dotsass\libsass\src\parser.cpp(1024): warning C6011: Dereferencing NULL pointer 'prop'.
c:\atwork\develop\dotsass\libsass\src\parser.cpp(1988): warning C6011: Dereferencing NULL pointer 'declaration'.
c:\atwork\develop\dotsass\libsass\src\sass_interface.cpp(40): warning C6011: Dereferencing NULL pointer 'arr[i-skip]'.
c:\atwork\develop\dotsass\libsass\src\sass_interface.cpp(43): warning C6011: Dereferencing NULL pointer 'arr'.
c:\atwork\develop\dotsass\libsass\src\util.cpp(604): warning C6011: Dereferencing NULL pointer 'stm'.
c:\atwork\develop\dotsass\libsass\src\util.cpp(629): warning C28182: Dereferencing NULL pointer. 'stm' contains the same NULL value as 'child=dynamic_cast<Sass::Has_Block *>stm, child' did.
c:\atwork\develop\dotsass\libsass\src\util.cpp(645): warning C6011: Dereferencing NULL pointer 'stm'.
Will somebody of you fix these issues soon? If not, I'm willing to create a fork and commit them myself.
I already looked at some of them and they seem to me things that realy can go wrong. Especcially the "Dereferencing NULL pointer" warnings.
Hope to hear from you.
Kind regards,
Henry
The text was updated successfully, but these errors were encountered:
I've cloned the master of today build with MSVC and removed the warnings and switched on Code Analysis. This code analysis returns some possible issues:
c:\atwork\develop\dotsass\libsass\src\ast.cpp(35): warning C6287: Redundant code: the left and right sub-expressions are identical.
c:\atwork\develop\dotsass\libsass\src\ast.cpp(679): warning C6011: Dereferencing NULL pointer 'l'.
c:\atwork\develop\dotsass\libsass\src\ast.cpp(726): warning C6287: Redundant code: the left and right sub-expressions are identical.
c:\atwork\develop\dotsass\libsass\src\ast.cpp(1146): warning C6011: Dereferencing NULL pointer 'c'.
c:\atwork\develop\dotsass\libsass\src\ast.cpp(1158): warning C6011: Dereferencing NULL pointer 'pIter'. See line 1146 for an earlier location where this can occur
c:\atwork\develop\dotsass\libsass\src\ast.cpp(1686): warning C28182: Dereferencing NULL pointer. 'key' contains the same NULL value as 'v_key' did.
c:\atwork\develop\dotsass\libsass\src\ast.cpp(1709): warning C28182: Dereferencing NULL pointer. 'item' contains the same NULL value as 'v_val=dynamic_cast<Sass::Value *>item, v_val' did.
c:\atwork\develop\dotsass\libsass\src\context.cpp(152): warning C6001: Using uninitialized memory '_strings.'.
c:\atwork\develop\dotsass\libsass\src\context.cpp(150): warning C6001: Using uninitialized memory '_sources.'.
c:\atwork\develop\dotsass\libsass\src\eval.cpp(719): warning C6011: Dereferencing NULL pointer 'value'.
c:\atwork\develop\dotsass\libsass\src\eval.cpp(1103): warning C28182: Dereferencing NULL pointer. 'lhs' contains the same NULL value as 'l' did.
c:\atwork\develop\dotsass\libsass\src\eval.cpp(1104): warning C28182: Dereferencing NULL pointer. 'rhs' contains the same NULL value as 'r' did.
c:\atwork\develop\dotsass\libsass\src\eval.cpp(1106): warning C6011: Dereferencing NULL pointer 'r'. See line 1104 for an earlier location where this can occur
c:\atwork\develop\dotsass\libsass\src\expand.cpp(134): warning C28182: Dereferencing NULL pointer. 'stm' contains the same NULL value as 'dec=static_cast<Sass::Declaration *>stm, dec' did.
c:\atwork\develop\dotsass\libsass\src\file.cpp(313): warning C6031: Return value ignored: 'ReadFile'.
c:\atwork\develop\dotsass\libsass\src\json.cpp(115): warning C6308: 'realloc' might return null pointer: assigning null pointer to 'sb->start', which is passed as an argument to 'realloc', will cause the original memory block to be leaked.
c:\atwork\develop\dotsass\libsass\src\parser.cpp(1024): warning C6011: Dereferencing NULL pointer 'prop'.
c:\atwork\develop\dotsass\libsass\src\parser.cpp(1988): warning C6011: Dereferencing NULL pointer 'declaration'.
c:\atwork\develop\dotsass\libsass\src\sass_interface.cpp(40): warning C6011: Dereferencing NULL pointer 'arr[i-skip]'.
c:\atwork\develop\dotsass\libsass\src\sass_interface.cpp(43): warning C6011: Dereferencing NULL pointer 'arr'.
c:\atwork\develop\dotsass\libsass\src\util.cpp(604): warning C6011: Dereferencing NULL pointer 'stm'.
c:\atwork\develop\dotsass\libsass\src\util.cpp(629): warning C28182: Dereferencing NULL pointer. 'stm' contains the same NULL value as 'child=dynamic_cast<Sass::Has_Block *>stm, child' did.
c:\atwork\develop\dotsass\libsass\src\util.cpp(645): warning C6011: Dereferencing NULL pointer 'stm'.
Will somebody of you fix these issues soon? If not, I'm willing to create a fork and commit them myself.
I already looked at some of them and they seem to me things that realy can go wrong. Especcially the "Dereferencing NULL pointer" warnings.
Hope to hear from you.
Kind regards,
Henry
The text was updated successfully, but these errors were encountered: