1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05: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 355deabaab
commit de23a950f4
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -24,6 +24,7 @@ To be released as 0.11.4.
* major bug 788: don't read STRLEN n_a, which isn't initialized by
POPpx of Perl v5.8.8 and later
* fix query parsing in file: URIs for local CGI (was broken in 0.11.3)
* bug 975: fix int/size_t pointer type mismatch in Perl interface
* bug 691: don't look up bogus IPv4 addresses based on characters of a
hostname
* bug 712: GnuTLS works on https://www-s.uiuc.edu/[]

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) {