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:
parent
be9ae9861d
commit
e667c43cd3
1
NEWS
1
NEWS
@ -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.
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user