Skip to content
Tcl Source Code Artifact [a42aad0ce5]
Login

Artifact [a42aad0ce5]

Artifact a42aad0ce5fc743c8620cf65bbba70922aac7fb4:

Ticket change [a42aad0ce5] - Ticket [1557855fffffffff|1557855fff] <i>fcopy doesn&#39;t handle large sizes</i> status still Open with 4 other changes by ferrieux on 2008-04-05 06:05:23.
D 2008-04-05T06:05:23
J icomment Logged\sIn:\sYES\s\nuser_id=496139\nOriginator:\sNO\n\nHalf-fixed\s:-)\n(Truly\sfixing\swould\simply\sswitching\sto\sat\sleast\swide\sints\sor\seven\sworse...\swhich\smay\shit\sthe\sperformance\sof\sthe\sdominant\suse\sof\s-size\swith\sa\ssmall\svalue\s(who\swould\sdo\sa\sfcopy\sof\s4G\swithout\sa\sprogress\sindicator\s?))\n\nIt\sis\snot\strue\sthat\sthere\sis\sno\serror\shandling:\sa\svalue\sover\s4G\swill\selicit\san\s"integer\svalue\stoo\slarge\sto\srepresent"\serror.\nHowever,\sthere\swas\sstill\sthe\ssigned-int\svs.\sunsigned-int\sissue:\sa\svalue\sof\s3G\sis\ssilently\saccepted\sas\snegative,\s*and*\snegative\svalues\swere\snot\srejected.\n\nThe\spatch\sbelow\s(tclIOCmd.c)\srejects\snegative\svalues:\n\ncase\sFcopySize:\n\s\s\s\sif\s(TclGetIntFromObj(interp,\sobjv[i+1],\s&toRead)\s!=\sTCL_OK)\s{\nreturn\sTCL_ERROR;\n\s\s\s\s}\n+\s\s\s\sif\s(toRead<0)\s{\n+Tcl_AppendResult(interp,\s"negative\ssize\sforbidden",NULL);\n+return\sTCL_ERROR;\n+\s\s\s\s}\n\s\s\s\sbreak;\n\n\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 1557855fffffffffffffffffffffffffffffffff
U ferrieux
Z da86ec5a3415fb595b03de91f7cb92f4