Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
96c7253c
Commit
96c7253c
authored
23 years ago
by
Cris Bailiff
Browse files
Options
Downloads
Patches
Plain Diff
Fix perl segfault due to changes in header callback behaviour since curl-7.8.1-pre3
parent
3f5227df
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
perl/Curl_easy/Changes
+4
-0
4 additions, 0 deletions
perl/Curl_easy/Changes
perl/Curl_easy/easy.pm
+2
-2
2 additions, 2 deletions
perl/Curl_easy/easy.pm
perl/Curl_easy/easy.xs
+11
-4
11 additions, 4 deletions
perl/Curl_easy/easy.xs
with
17 additions
and
6 deletions
perl/Curl_easy/Changes
+
4
−
0
View file @
96c7253c
Revision history for Perl extension Curl::easy.
Check out the file README for more info.
1.1.6 Mon Sep 10 2001: - Cris Bailiff <c.bailiff@devsecure.com>
- Fix segfault due to changes in header callback behaviour
since curl-7.8.1-pre3
1.1.5 Fri Apr 20 2001: - Cris Bailiff <c.bailiff@devsecure.com>
- Add latest CURLOPT_ and CURLINFO_ constants to the constants list
...
...
This diff is collapsed.
Click to expand it.
perl/Curl_easy/easy.pm
+
2
−
2
View file @
96c7253c
...
...
@@ -110,7 +110,7 @@ CURLINFO_CONTENT_LENGTH_UPLOAD
USE_INTERNAL_VARS
)
;
$VERSION
=
'
1.1.
5
';
$VERSION
=
'
1.1.
6
';
$
Curl::easy::
headers
=
"";
$
Curl::easy::
content
=
"";
...
...
@@ -254,7 +254,7 @@ indicate an error.
Georg Horn <horn@koblenz-net.de>
Additional callback,pod and tes work by Cris Bailiff <c.bailiff@devsecure.com>
Additional callback,pod and tes
t
work by Cris Bailiff <c.bailiff@devsecure.com>
and Forrest Cahoon <forrest.cahoon@merrillcorp.com>
=head1 SEE ALSO
...
...
This diff is collapsed.
Click to expand it.
perl/Curl_easy/easy.xs
+
11
−
4
View file @
96c7253c
...
...
@@ -101,12 +101,14 @@ fwrite_wrapper (const void *ptr,
if (stream == stdout) {
sv = newSViv(0); /* FIXME: should cast stdout to GLOB somehow? */
} else { /* its already an SV */
} else if (stream == NULL) {
sv = &PL_sv_undef;
} else { /* its already an SV */
sv = stream;
}
if (ptr != NULL) {
XPUSHs(sv_2mortal(newSVpvn(
ptr,
size * nmemb)));
XPUSHs(sv_2mortal(newSVpvn(
(char *)ptr, (STRLEN)(
size * nmemb)))
)
;
} else {
XPUSHs(sv_2mortal(newSVpv("", 0)));
}
...
...
@@ -130,15 +132,20 @@ fwrite_wrapper (const void *ptr,
} else {
/* default to a normal 'fwrite' */
/* stream could be a FILE * or an SV * */
/* or NULL since libcurl-7.8.1pre3 */
FILE *f;
if (stream == stdout) { /* the only possible FILE ? Think so */
if (stream == stdout ||
stream == NULL) { /* the only possible FILE ? Think so */
f = stream;
} else { /* its a GLOB */
f = IoIFP(sv_2io(stream)); /* may barf if not a GLOB */
}
return fwrite(ptr, size, nmemb, f);
if (f)
return fwrite(ptr, size, nmemb, f);
else
return (size_t) size*nmemb;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment