RPM Package Manager, CVS Repository http://rpm5.org/cvs/ ____________________________________________________________________________
Server: rpm5.org Name: Jeff Johnson Root: /v/rpm/cvs Email: j...@rpm5.org Module: rpm Date: 04-Aug-2013 21:11:40 Branch: rpm-5_4 Handle: 2013080419114000 Modified files: (Branch: rpm-5_4) rpm/rpmio rpmpigz.c Log: - coverity #1060691 Summary: Revision Changes Path 1.68.6.3 +2 -1 rpm/rpmio/rpmpigz.c ____________________________________________________________________________ patch -p0 <<'@@ .' Index: rpm/rpmio/rpmpigz.c ============================================================================ $ cvs diff -u -r1.68.6.2 -r1.68.6.3 rpmpigz.c --- rpm/rpmio/rpmpigz.c 4 Aug 2013 18:34:08 -0000 1.68.6.2 +++ rpm/rpmio/rpmpigz.c 4 Aug 2013 19:11:40 -0000 1.68.6.3 @@ -2848,7 +2848,8 @@ /* open input file with name in, descriptor zq->ifdno -- set name and mtime */ if (path == NULL) { - strcpy(z->_ifn, z->stdin_fn); + strncpy(z->_ifn, z->stdin_fn, sizeof(z->_ifn)); + z->_ifn[sizeof(z->_ifn)-1] = '\0'; zq->_zinp.fdno = STDIN_FILENO; /*@-mustfreeonly@*/ zh->name = NULL; @@ . ______________________________________________________________________ RPM Package Manager http://rpm5.org CVS Sources Repository rpm-cvs@rpm5.org