Re: git config set --file, key-value pair without '= value', gives Segmentation fault

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Taylor Blau <me@xxxxxxxxxxxx> writes:

> I tried to match the behavior a few lines down in that function, where
> we only call regexec() if value is non-NULL.

Yes, that is exactly what made me question the code.  With the
current code, valueless true cannot be updated with "--value"
restriction, ever, because it will never match anything.

In any case, the patch is a strict improvement over the current code
that segfaults.  Making it aware of "--type=bool" and have it treat
synonymous values of true/false properly would be better left as a
follow-up topic.

Thanks.




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux