Skip to content
Snippets Groups Projects
  • Kevin Harwell's avatar
    4b5d11ec
    func_strings: HASHKEY - negative array index can cause corruption · 4b5d11ec
    Kevin Harwell authored
    This patch makes it so only matching non-empty key names, and keys created by
    the HASH function are eligible for inclusion in the comma separated string. It
    also fixes a bug where it was possible to write to a negative index if the
    result buffer was empty.
    
    ASTERISK-28159
    patches:
      ASTERISK-28159.diff submitted by Michael Walton (license 6502)
    
    Change-Id: I6e57fe7307dfd856271753aed5ba64c59b511487
    4b5d11ec
    History
    func_strings: HASHKEY - negative array index can cause corruption
    Kevin Harwell authored
    This patch makes it so only matching non-empty key names, and keys created by
    the HASH function are eligible for inclusion in the comma separated string. It
    also fixes a bug where it was possible to write to a negative index if the
    result buffer was empty.
    
    ASTERISK-28159
    patches:
      ASTERISK-28159.diff submitted by Michael Walton (license 6502)
    
    Change-Id: I6e57fe7307dfd856271753aed5ba64c59b511487
func_strings.c 59.34 KiB