On Thu, Sep 27, 2007 at 06:21:24AM +0000, Junio C Hamano wrote:I can see a way, that would need special proof-reading of the strbuf module, but should not harm its users, that would be to change STRBUF_INIT to work this way: { .buf =3D "", .len =3D 0, .alloc =3D 0 } It needs to make strbuf_grow and strbuf_release check for ->alloc before doing anything stupid. Though we may have some bits of code that rely on .buf being NULL if nothing happened. I tried to track them down, but some may remain. If you agree with this change, that would solve most of the issues with almost no cost, then I'll propose a new patch with this change. --=20 =C2=B7O=C2=B7 Pierre Habouzit =C2=B7=C2=B7O madcoder@debia= n.org OOO http://www.madism.org
| Greg KH | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Adrian Bunk | [1/6] 2.6.21-rc2: known regressions |
| Paul Jackson | Re: cpuset-remove-sched-domain-hooks-from-cpusets |
git: | |
| Linus Torvalds | Re: [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
