On Sat, Feb 10, 2007 at 09:58:27AM +0800, gary ng wrote:
> Package: liblua5.1-curl0
> Version: 0.2.0-3
> Severity: normal
> 
> I am not sure if this is a limitation of lua or curl. My assumption is it is
> intended for > 32 bit number but I have tried suppling one and it effectively
> cuts the transfer(which I believe is that internally take the number as
> negative because of the overflow).
> 
> lua seems to be able to handle > 32 bit number.

this is the incriminated code:

        /* curl_off_t */
        case CURLOPT_RESUME_FROM_LARGE:
        case CURLOPT_INFILESIZE_LARGE:
        case CURLOPT_MAXFILESIZE_LARGE:{
                curl_off_t o = (curl_off_t)luaL_checknumber(L,3);
                rc = curl_easy_setopt(c,opt,o);
        }break;

as you can see, these a cast from lua_Number to curl_off_t.

I'll investigate further, maybe using lua_checkint is better.

Cheers
-- 
Enrico Tassi


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to