[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cgit
Subject:    [PATCH] Fix segmentation fault in empty repository
From:       hjemli () gmail ! com (Lars Hjemli)
Date:       2012-01-03 20:58:45
Message-ID: CAFXTnz7CCbAy3-sjzhe7BZpwMvRF3K-nnSgaYcY0RY9gB753Lw () mail ! gmail ! com
[Download RAW message or body]

On Thu, Nov 24, 2011 at 12:54, John Keeping <john at metanate.com> wrote:
> When a repository is empty, the ATOM feed link is written in the header,
> but this involves formatting ctx->qry.head which is NULL in this case.
> With glibc, vsnprintf formats "%s" with a NULL input as "(null)" but on
> Solaris this results in a segmentation fault. ?Since we don't have a
> meaningful head for the atom feed in an empty repository, it's simplest
> not to write out the link element at all.

Thanks, applied to stable.

--
larsh



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic