Review Request: remove an assert

Jaime Torres Amate jtamate at gmail.com
Tue Nov 6 09:08:36 GMT 2012



> On Nov. 6, 2012, 6:46 a.m., David Edmundson wrote:
> > The responsibility of deleting d->rootDir seems to lie within KArchive. Therefore by setting the rootDir twice either implicitly or explicitly (which this assert is designed to avoid) you risk leaking the first KArchiveDirectory object. 
> > 
> > I think you need something more involved than just removing the checks.

The problem comes from ktar.cpp, line 472 after finding a "." directory entry in a .tar file.
For example, the kdevelop ruby templates at $KDE_INSTALL_DIR/share/apps/kdevappwizard/templates/kderubyapp.tar.bz2


- Jaime Torres


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/107211/#review21475
-----------------------------------------------------------


On Nov. 5, 2012, 2:47 p.m., Jaime Torres Amate wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/107211/
> -----------------------------------------------------------
> 
> (Updated Nov. 5, 2012, 2:47 p.m.)
> 
> 
> Review request for kdelibs.
> 
> 
> Description
> -------
> 
> I've suffered this assert starting kdevelop.
> The assert and the comment are no longer valid, as the rootDir can be set also calling rootDir, not only setRootDir.
> 
> 
> Diffs
> -----
> 
>   kdecore/io/karchive.cpp 43539e3 
> 
> Diff: http://git.reviewboard.kde.org/r/107211/diff/
> 
> 
> Testing
> -------
> 
> avoid an unnecesary debug crash.
> 
> 
> Thanks,
> 
> Jaime Torres Amate
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20121106/e15dca01/attachment.htm>


More information about the kde-core-devel mailing list