Re: [PATCH v7 23/28] Reftable support for git-core

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

 



On Tue, May 18, 2021 at 3:18 PM Han-Wen Nienhuys <hanwen@xxxxxxxxxx> wrote:
> > This seems to assume that 'ref.value_type == REFTABLE_REF_VAL1' - but do
> > we expect to have to handle the other types
> > (REFTABLE_REF_VAL2/REFTABLE_REF_SYMREF)? When I run tests in seen
> > against ASAN I see the following errors in t0031, which suggests we're
> > running this code against REFTABLE_REF_SYMREF too - but I don't know if
> > that means that this code should be able to handle the other ref types
> > or if there's a bug higher up the stack. (AFAIUI REFTABLE_REF_DELETION
> > is already handled because reftable_table_read_ref() already returns 1
> > for deletion, but the other cases seem valid?)
>
> Curious.  I didn't know it was supported to create symrefs in a
> transaction, but I've added an assert to make sure this doesn't
> trigger any sanitizers.

This happens on repo initialization, where we create HEAD and its
referents at the same time.

I've fixed this provisionally for now in my series.

-- 
Han-Wen Nienhuys - Google Munich
I work 80%. Don't expect answers from me on Fridays.
--

Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich

Registergericht und -nummer: Hamburg, HRB 86891

Sitz der Gesellschaft: Hamburg

Geschäftsführer: Paul Manicle, Halimah DeLaine Prado




[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