Review Request 129599: segfault when ruby was not installed
Sven Brauch
mail at svenbrauch.de
Fri Dec 2 09:19:48 UTC 2016
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/129599/#review101213
-----------------------------------------------------------
languagesupport.cpp (line 72)
<https://git.reviewboard.kde.org/r/129599/#comment67817>
Now you should actually launch that executable instead of /usr/bin/env, though.
languagesupport.cpp (line 75)
<https://git.reviewboard.kde.org/r/129599/#comment67818>
needs a timeout
languagesupport.cpp (line 76)
<https://git.reviewboard.kde.org/r/129599/#comment67819>
this is already unsafe, you don't know the output will contain a space.
- Sven Brauch
On Dec. 2, 2016, 8:43 a.m., Leslie Zhai wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/129599/
> -----------------------------------------------------------
>
> (Updated Dec. 2, 2016, 8:43 a.m.)
>
>
> Review request for KDevelop and Kevin Funk.
>
>
> Repository: kdev-ruby
>
>
> Description
> -------
>
> if ruby was not installed, ruby.readAllStandardOutput().split(' ')'s size is ZERO, so I simply added the check:
>
> ```
> QByteArray allOutput = ruby.readAllStandardOutput();
> if (allOutput.split(' ').size() > 1)
> ```
>
>
> Diffs
> -----
>
> languagesupport.cpp d618d7d
>
> Diff: https://git.reviewboard.kde.org/r/129599/diff/
>
>
> Testing
> -------
>
> 1. Not intalled ruby, kdevelop import redmin (a bug tracker written in ruby) will NOT segfault
> 2. Installed ruby, the same story
>
>
> Thanks,
>
> Leslie Zhai
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20161202/2900d79d/attachment-0001.html>
More information about the KDevelop-devel
mailing list