Re: [PATCH] Support "core.excludesfile = ~/.gitignore"

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Eric Raible <raible@...>
Cc: <git@...>
Date: Friday, August 22, 2008 - 1:56 pm

On Fri, Aug 22, 2008 at 18:58, Eric Raible <raible@gmail.com> wrote:
No.

    swtich (strlen(value)) {
    case 0:
        /* value[0] == '\0' => value[0] != '~'
           value[1] will never be dereferenced, because of lazy && */
    case 1:
       /* value[0] != '\0'
          if (value[0] == '~')
              value[1] == '\0' => value[1] != '/' */
    default:
       /* ... */
    }

So no invalid memory dereferences.

Regards
Bert
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Support "core.excludesfile = , Eric Raible, (Fri Aug 22, 12:58 pm)
Re: [PATCH] Support "core.excludesfile = ~/.gitignore", Bert Wesarg, (Fri Aug 22, 1:56 pm)