Re: [RFC PATCH 1/4] X.509: Fix leap year handling again

From: David Howells
Date: Wed Jan 20 2016 - 10:18:40 EST


Rudolf Polzer <rpolzer@xxxxxxxxxx> wrote:

> A small nit: could it be that the month_lengths array also exists elsewhere
> in the kernel? Can it possibly be shared? A quick glance around didn't pop
> up anything that's not static, so, looks like it's okay to add yet another
> one...

Fair point, but outside of the scope of this patch. The array already exists
that I'm fixing. It's definitely material for a future patch though.

Note that the following:

git grep 'month.*[[]'

trawls up a few candidates.

David