Searched hist:"7 cfe69417cad6dc797729aaa60dc538aa194e1ba" (Results 1 – 3 of 3) sorted by relevance
/freebsd/bin/sh/ |
H A D | memalloc.h | diff 7cfe69417cad6dc797729aaa60dc538aa194e1ba Thu Oct 14 01:29:09 CEST 2010 David E. O'Brien <obrien@FreeBSD.org> Do not assume in growstackstr() that a "precious" character will be immediately written into the stack after the call. Instead let the caller manage the "space left".
Previously, growstackstr()'s assumption causes problems with STACKSTRNUL() where we want to be able to turn a stack into a C string, and later pretend the NUL is not there.
This fixes a bug in STACKSTRNUL() (that grew the stack) where: 1. STADJUST() called after a STACKSTRNUL() results in an improper adjust. This can be seen in ${var%pattern} and ${var%%pattern} evaluation. 2. Memory leak in STPUTC() called after a STACKSTRNUL().
Reviewed by: jilles
|
H A D | memalloc.c | diff 7cfe69417cad6dc797729aaa60dc538aa194e1ba Thu Oct 14 01:29:09 CEST 2010 David E. O'Brien <obrien@FreeBSD.org> Do not assume in growstackstr() that a "precious" character will be immediately written into the stack after the call. Instead let the caller manage the "space left".
Previously, growstackstr()'s assumption causes problems with STACKSTRNUL() where we want to be able to turn a stack into a C string, and later pretend the NUL is not there.
This fixes a bug in STACKSTRNUL() (that grew the stack) where: 1. STADJUST() called after a STACKSTRNUL() results in an improper adjust. This can be seen in ${var%pattern} and ${var%%pattern} evaluation. 2. Memory leak in STPUTC() called after a STACKSTRNUL().
Reviewed by: jilles
|
H A D | histedit.c | diff 7cfe69417cad6dc797729aaa60dc538aa194e1ba Thu Oct 14 01:29:09 CEST 2010 David E. O'Brien <obrien@FreeBSD.org> Do not assume in growstackstr() that a "precious" character will be immediately written into the stack after the call. Instead let the caller manage the "space left".
Previously, growstackstr()'s assumption causes problems with STACKSTRNUL() where we want to be able to turn a stack into a C string, and later pretend the NUL is not there.
This fixes a bug in STACKSTRNUL() (that grew the stack) where: 1. STADJUST() called after a STACKSTRNUL() results in an improper adjust. This can be seen in ${var%pattern} and ${var%%pattern} evaluation. 2. Memory leak in STPUTC() called after a STACKSTRNUL().
Reviewed by: jilles
|