Review Request 129600: segfault when ExpressionVisitor's lastType is nullptr

Leslie Zhai xiangzhai83 at gmail.com
Fri Dec 9 01:57:06 UTC 2016



> On 十二月 7, 2016, 11:16 p.m., Kevin Funk wrote:
> > @Leslie: Still plan to fix this issue?

no.

> Thanks for caring. I would prefer to change the expression visitor so it never returns a null type, i.e. initialize it to AbstractType::Ptr(new IntegralType(IntegralType::TypeMixed)) or so though.

@Sven might fix it ;-)


- Leslie


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/129600/#review101326
-----------------------------------------------------------


On 十二月 5, 2016, 9:42 a.m., Leslie Zhai wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/129600/
> -----------------------------------------------------------
> 
> (Updated 十二月 5, 2016, 9:42 a.m.)
> 
> 
> Review request for KDevelop and Kevin Funk.
> 
> 
> Repository: kdev-ruby
> 
> 
> Description
> -------
> 
> When using kdevelop import redmine (a bug tracker written in ruby http://www.redmine.org/) segfault when ExpressionVisitor's lastType is nullptr, so I simply added the check
> 
> ```
> if (ev.lastType() != nullptr)
> ```
> 
> 
> Diffs
> -----
> 
>   duchain/builders/declarationbuilder.cpp 841fc2e 
> 
> Diff: https://git.reviewboard.kde.org/r/129600/diff/
> 
> 
> Testing
> -------
> 
> import redmine
> 
> 
> Thanks,
> 
> Leslie Zhai
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20161209/39b80a8d/attachment.html>


More information about the KDevelop-devel mailing list