mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00
remove bad @trusted annotations from etc.c.curl
Functions that take pointer and length separately cannot be memory-safe. The caller can pass a length that's too large, leading to an out-of-bounds read.
This commit is contained in:
parent
b5215cbbba
commit
ac91dfef6b
1 changed files with 4 additions and 4 deletions
|
@ -1507,10 +1507,10 @@ char * curl_version();
|
|||
* %XX versions). This function returns a new allocated string or NULL if an
|
||||
* error occurred.
|
||||
*/
|
||||
char * curl_easy_escape(CURL *handle, in char *string, int length) @trusted;
|
||||
char * curl_easy_escape(CURL *handle, in char *string, int length);
|
||||
|
||||
/** the previous version: */
|
||||
char * curl_escape(in char *string, int length) @trusted;
|
||||
char * curl_escape(in char *string, int length);
|
||||
|
||||
|
||||
/**
|
||||
|
@ -1524,10 +1524,10 @@ char * curl_escape(in char *string, int length) @trusted;
|
|||
* Conversion Note: On non-ASCII platforms the ASCII %XX codes are
|
||||
* converted into the host encoding.
|
||||
*/
|
||||
char * curl_easy_unescape(CURL *handle, in char *string, int length, int *outlength) @trusted;
|
||||
char * curl_easy_unescape(CURL *handle, in char *string, int length, int *outlength);
|
||||
|
||||
/** the previous version */
|
||||
char * curl_unescape(in char *string, int length) @trusted;
|
||||
char * curl_unescape(in char *string, int length);
|
||||
|
||||
/**
|
||||
* Name: curl_free()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue