[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#504325: apt: arfile.cc uses strlen where it should use sizeof



package apt
severity 504325 normal
tags 504325 +confirmed
thanks

Marius Vollmer wrote:
> Package: apt
> Version: 0.7.16+b1
> Severity: minor
> Tags: patch
> 
> 
> In apt-inst/contrib/arfile.cc:99, the available space in the buffer 'S' is computed with "strlen(S)".
> I think that shuld be "sizeof(S)", as the content of S is undefined at this point.
[snip]

Hello Marius.
Thanks for bug report, I'm confirming it.

-- 
Eugene V. Lyubimkin aka JackYF, Ukrainian C++ developer.

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: