1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

Bug 975: Fix int/size_t pointer type mismatch.

On machines where sizeof(size_t) > sizeof(int), this could corrupt the stack.
I think -Wno-pointer-sign added by configure hid this bug until now.
STRLEN is correct in Perl 5.6.0 and later, perhaps earlier too.
This commit is contained in:
Kalle Olavi Niemitalo 2007-11-10 19:28:01 +02:00 committed by Kalle Olavi Niemitalo
parent be9ae9861d
commit e667c43cd3
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -74,6 +74,7 @@ Miscellaneous:
* bug 766: speed up CSS
* bug 355: add documents displayed via ``What to do'' dialog to the
global history
* bug 975: fix int/size_t pointer type mismatch in Perl interface
* encode and decode filenames in FSP URLs
* don't use a busy cache entry if it has expired or should be
reloaded. See elinks-users mail from 28 Oct 2005.

View File

@ -142,7 +142,7 @@ do_script_hook_pre_format_html(unsigned char *url, struct cache_entry *cached,
SPAGAIN;
if (count == 1) {
SV *new_html_sv = POPs;
int new_html_len;
STRLEN new_html_len;
unsigned char *new_html = SvPV(new_html_sv, new_html_len);
if (new_html) {