joostkremers / ebib

A BibTeX database manager for Emacs.
https://joostkremers.github.io/ebib/
BSD 3-Clause "New" or "Revised" License
272 stars 37 forks source link

ebib crashes on recursive crossref fields #281

Closed ghost closed 6 months ago

ghost commented 10 months ago

MWE:

@{Article}{<new-entry1>,
    crossref = {<new-entry1>},
    note = {This is a test note that is here for testing purposes.},
    title = {Test Title},
    author = {Test Author}
}

a reference which references itself makes ebib go into an infinite loop.

joostkremers commented 9 months ago

Hmm, yeah, I guess this is a case I never considered... Shouldn't be too hard to fix. I'll push an update soon.

Thanks for reporting this.

joostkremers commented 7 months ago

I pushed a fix for this, and with the example entry you provide, Ebib doesn't go into an infinite loop any more.