Review Request 120023: Fix crash in unit test when run with ASAN

Milian Wolff mail at milianw.de
Sun Aug 31 16:48:47 UTC 2014


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



src/k7zip.cpp
<https://git.reviewboard.kde.org/r/120023/#comment45852>

    personally, I'd prefer the C++ way of casting over unsafe C-style casts every time.
    
    Also, what is the magic number 8? That should probably be sizeof(quint64), no?


- Milian Wolff


On Aug. 31, 2014, 2:46 p.m., Albert Astals Cid wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/120023/
> -----------------------------------------------------------
> 
> (Updated Aug. 31, 2014, 2:46 p.m.)
> 
> 
> Review request for KDE Frameworks, Mario Bensi and Mathieu Tarral.
> 
> 
> Repository: karchive
> 
> 
> Description
> -------
> 
> Without this patch when running karchivetest with asan I get http://paste.kde.org/p3unh9jzk
> 
> Discovered in conjunction with Mathieu Tarral
> 
> 
> Diffs
> -----
> 
>   src/k7zip.cpp 4a88453 
> 
> Diff: https://git.reviewboard.kde.org/r/120023/diff/
> 
> 
> Testing
> -------
> 
> Test now passes
> 
> 
> Thanks,
> 
> Albert Astals Cid
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20140831/c96d304a/attachment.html>


More information about the Kde-frameworks-devel mailing list