[NUT-devel] [nut]: r622 - src/trunk/nututils/nutparse.c
Rich Felker
dalias at aerifal.cx
Wed Feb 13 18:57:08 CET 2008
On Wed, Feb 13, 2008 at 01:40:46PM +0100, cladisch wrote:
> Author: cladisch
> Date: Wed Feb 13 13:40:44 2008
> New Revision: 622
>
> Log:
> check frame code table delta match time restriction
>
> Modified:
> src/trunk/nututils/nutparse.c
>
> Modified: src/trunk/nututils/nutparse.c
> ==============================================================================
> --- src/trunk/nututils/nutparse.c (original)
> +++ src/trunk/nututils/nutparse.c Wed Feb 13 13:40:44 2008
> @@ -324,6 +324,9 @@ static void parse_main_header(void)
> if (tmp_fields > 6) {
> tmp_match = read_svar();
> printf(" tmp_match: %"PRId64"\n", tmp_match);
> + if ((tmp_match <= -32768 || tmp_match >= 32768) &&
> + tmp_match != 1 - (INT64_C(1) << 62))
> + error("absolute delta match time must be less than 32768");
Please wait for some discussion of new changes before committing them
to the code or spec..
Rich
More information about the NUT-devel
mailing list