Skip to content
Tcl Source Code Artifact [60f3b9d7e1]
Login

Artifact [60f3b9d7e1]

Artifact 60f3b9d7e16272852753532aeb7eefea16ee4fb2:

Ticket change [60f3b9d7e1] - Ticket [1259431fffffffff|1259431fff] <i>Check for 0 byte allocation in ckalloc</i> status still Open with 4 other changes by hobbs on 2005-08-16 00:19:22.
D 2005-08-16T00:19:22
J icomment Logged\sIn:\sYES\s\nuser_id=72656\n\nWe\scertainly\sshouldn't\spanic\son\s0\salloc\srequests\s-\sthat\sis\nperfectly\svalid\sin\sthe\sC\sstandard.\s\sI\ssee\swhere\sMo\sis\nrequesting\sthe\spatch\swe\sdo\sseem\sto\shave\sa\slatent\sbug\sin\sthat\nwe\sshouldn't\spanic\son\s(result\s==\sNULL)\sunless\s(size\s!=\s0),\nas\sAIX\sand\ssome\sother\ssystems\sdo\sreturn\sNULL\sfor\s0-byte\sallocs.\n\nIf\sa\scrash\soccured\sin\sthe\smingw\scompile,\sthan\sI\swould\nbacktrack\sto\sthe\ssources\smaking\sthe\salloc,\sas\nckalloc(0)/malloc(0)\sis\svalid\sC.\s\sWe\sdid\shave\sto\scorrect\ncode\sin\stkImg*.c\sonce\sregarding\sthis\s(0\ssize\simage\sallocs)\nbecause\swe\ssimply\sweren't\shandling\sthe\scase\sof\ssuch\srequests\n-\swhich\swas\sa\sbug\sin\sthe\simage\scode,\snot\sin\sckalloc(0)\sper\sse.\n
J login hobbs
J mimetype text/plain
J username hobbs
K 1259431fffffffffffffffffffffffffffffffff
U hobbs
Z 08af5d793dedc9b1f7876ec2f5ca9bc8