Changes with Apache 2.1.6
[Remove entries to the current 2.0 section below, when backported]
+ *) mod_cgid: Fix buffer overflow processing ScriptSock directive.
+ [Steve Kemp <steve steve.org.uk>]
+
Changes with Apache 2.1.5
*) SECURITY:
memset(&unix_addr, 0, sizeof(unix_addr));
unix_addr.sun_family = AF_UNIX;
- strcpy(unix_addr.sun_path, sockname);
+ apr_cpystrn(unix_addr.sun_path, sockname, sizeof unix_addr.sun_path);
omask = umask(0077); /* so that only Apache can use socket */
rc = bind(sd, (struct sockaddr *)&unix_addr, sizeof(unix_addr));
memset(&unix_addr, 0, sizeof(unix_addr));
unix_addr.sun_family = AF_UNIX;
- strcpy(unix_addr.sun_path, sockname);
+ apr_cpystrn(unix_addr.sun_path, sockname, sizeof unix_addr.sun_path);
connect_tries = 0;
sliding_timer = 100000; /* 100 milliseconds */