/[gentoo-x86]/dev-cpp/commoncpp2/files/1.8.1-fix-buffer-overflow.patch
Gentoo

Contents of /dev-cpp/commoncpp2/files/1.8.1-fix-buffer-overflow.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download) (as text)
Mon Jun 17 13:12:23 2013 UTC (6 years, 11 months ago) by dev-zero
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/x-diff
Version bump (bug #454704), also patch commoncpp2 to fix bugs #421383 (buffer overflow) and #467628 (automake-1.13 build failures). Update ebuild to EAPI 5 and add USE=static-libs (bug #439302). Drop old versions and their patches.

(Portage version: 2.1.11.63/cvs/Linux x86_64, signed Manifest commit with key 0x1E0CA85F!)

1 diff --git a/src/inaddr.cpp b/src/inaddr.cpp
2 index 5a4b9c4..50127f3 100644
3 --- a/src/inaddr.cpp
4 +++ b/src/inaddr.cpp
5 @@ -333,7 +333,7 @@ void IPV4Address::setAddress(const char *host)
6 if(ipaddr)
7 delete[] ipaddr;
8 ipaddr = new struct in_addr[1];
9 - memset((void *)&ipaddr[0], 0, sizeof(ipaddr));
10 + memset((void *)&ipaddr[0], 0, sizeof(*ipaddr));
11 return;
12 }
13

  ViewVC Help
Powered by ViewVC 1.1.20