Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 613627 Details for
Bug 857875
write callback: No safe way to signal user abort
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Remove the unnecessary range check in pycurl
write_callback.patch (text/plain), 1.11 KB, created by
Zdeněk Pavlas
on 2012-09-17 10:47:58 UTC
(
hide
)
Description:
Remove the unnecessary range check in pycurl
Filename:
MIME Type:
Creator:
Zdeněk Pavlas
Created:
2012-09-17 10:47:58 UTC
Size:
1.11 KB
patch
obsolete
>--- pycurl-7.19.0/src/pycurl.c.orig 2012-09-17 12:05:32.826796867 +0200 >+++ pycurl-7.19.0/src/pycurl.c 2012-09-17 12:06:11.656437198 +0200 >@@ -1085,20 +1085,7 @@ util_write_callback(int flags, char *ptr > ret = total_size; /* None means success */ > } > else if (PyInt_Check(result)) { >- long obj_size = PyInt_AsLong(result); >- if (obj_size < 0 || obj_size > total_size) { >- PyErr_Format(ErrorObject, "invalid return value for write callback %ld %ld", (long)obj_size, (long)total_size); >- goto verbose_error; >- } >- ret = (size_t) obj_size; /* success */ >- } >- else if (PyLong_Check(result)) { >- long obj_size = PyLong_AsLong(result); >- if (obj_size < 0 || obj_size > total_size) { >- PyErr_Format(ErrorObject, "invalid return value for write callback %ld %ld", (long)obj_size, (long)total_size); >- goto verbose_error; >- } >- ret = (size_t) obj_size; /* success */ >+ ret = (int) PyInt_AsLong(result); > } > else { > PyErr_SetString(ErrorObject, "write callback must return int or None");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 857875
:
613627
|
658097
|
703018
|
703490
|
703505
|
703527
|
705949