Lines Matching refs:pfsize
1074 curl_off_t pfsize; in curl_easy_setopt_ccsid() local
1199 pfsize = data->set.postfieldsize; in curl_easy_setopt_ccsid()
1201 if(!s || !pfsize || ccsid == NOCONV_CCSID || ccsid == ASCII_CCSID) { in curl_easy_setopt_ccsid()
1206 if(pfsize == -1) { in curl_easy_setopt_ccsid()
1219 if(pfsize < 0 || pfsize > SIZE_MAX) { in curl_easy_setopt_ccsid()
1224 len = pfsize; in curl_easy_setopt_ccsid()
1225 pfsize = len * MAX_CONV_EXPANSION; in curl_easy_setopt_ccsid()
1227 if(pfsize > SIZE_MAX) in curl_easy_setopt_ccsid()
1228 pfsize = SIZE_MAX; in curl_easy_setopt_ccsid()
1230 cp = malloc(pfsize); in curl_easy_setopt_ccsid()
1237 pfsize = convert(cp, pfsize, ASCII_CCSID, s, len, ccsid); in curl_easy_setopt_ccsid()
1239 if(pfsize < 0) { in curl_easy_setopt_ccsid()
1244 data->set.postfieldsize = pfsize; /* Replace data size. */ in curl_easy_setopt_ccsid()
1261 pfsize = (curl_off_t) bp->len * MAX_CONV_EXPANSION; in curl_easy_setopt_ccsid()
1263 if(pfsize > SIZE_MAX) in curl_easy_setopt_ccsid()
1264 pfsize = SIZE_MAX; in curl_easy_setopt_ccsid()
1266 cp = malloc(pfsize); in curl_easy_setopt_ccsid()
1273 pfsize = convert(cp, pfsize, ASCII_CCSID, bp->data, bp->len, ccsid); in curl_easy_setopt_ccsid()
1275 if(pfsize < 0) { in curl_easy_setopt_ccsid()
1281 blob.len = pfsize; in curl_easy_setopt_ccsid()