Commit 66ba55d6 authored by Rainer Jung's avatar Rainer Jung
Browse files

Merge 1781516 fro trunk:

htpasswd/htdbm: report the right limit when get_password()
overflows.

Submitted by: rjung
Reviewed by: rjung, covener, jailletc36


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1826888 13f79535-47bb-0310-9956-ffa450edef68
parent 9eaf2285
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
                                                         -*- coding: utf-8 -*-
Changes with Apache 2.4.33

  *) htpasswd/htdbm: report the right limit when get_password() overflows.
     [Yann Ylavic]

  *) htpasswd: Don't fail in -v mode if password file is unwritable.
     PR 61631.  [Joe Orton]

+1 −8
Original line number Diff line number Diff line
@@ -126,13 +126,6 @@ PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
     2.4.x patch: svn merge -c 1826686 ^/httpd/httpd/trunk .
     +1: jailletc36, ylavic, covener

  *) htpasswd/htdbm: report the right limit when get_password() overflows.
     This brings 2.4.x passwd_common.c in sync with trunk.
     trunk patch: http://svn.apache.org/r1781516
     2.4.x patch: svn merge -c 1781516 ^/httpd/httpd/trunk .
                  plus CHANGES
     +1: rjung, covener, jailletc36

  *) ab: try all destination socket addresses returned by apr_sockaddr_info_get
     instead of failing on first one when not available.
     Needed for instance if localhost resolves to both ::1 and 127.0.0.1
@@ -214,7 +207,7 @@ PATCHES PROPOSED TO BACKPORT FROM TRUNK:
     +1: rjung
     ylavic: likewise, patch not found

  *) mod_slomem_shm: Fix failure to create balancers's slotmems in Windows MPM,
  *) mod_slotmem_shm: Fix failure to create balancers's slotmems in Windows MPM,
     where children processes need to attach them instead since they are owned
     by the parent process already.
     trunk patch: http://svn.apache.org/r1826845
+1 −1
Original line number Diff line number Diff line
@@ -168,7 +168,7 @@ int get_password(struct passwd_ctx *ctx)
err_too_long:
    ctx->errstr = apr_psprintf(ctx->pool,
                               "password too long (>%" APR_SIZE_T_FMT ")",
                               ctx->out_len - 1);
                               sizeof(buf) - 1);
    return ERR_OVERFLOW;
}