[vlc-devel] [PATCH] Fix for crc_octets CRC24_POLY

Steve Lhomme robux4 at ycbcr.xyz
Mon Jun 17 08:27:57 CEST 2019


On 2019-06-15 13:04, Marco Bellaccini wrote:
> I've fixed crc_octets CRC24_POLY value in update_crypto.c.
> There is a typo in the RFC from which it was copied:
> https://www.rfc-editor.org/errata/eid5491

Hi,

Are the errata official and applied ? Looking at the RFC 4880 directly 
from the IETF I see no correction in the document:
https://tools.ietf.org/html/rfc4880

There is a link to the Errata though.

> Cheers
> 
> Marco Bellaccini
> 
> 0001-Fixed-crc_octets-CRC24_POLY.patch
> 
>  From d68a8b2e10227ddbe40065aadc9660c91f81920c Mon Sep 17 00:00:00 2001
> From: Marco Bellaccini <24960638+marcobellaccini at users.noreply.github.com>
> Date: Sat, 15 Jun 2019 12:21:20 +0200
> Subject: [PATCH] Fixed crc_octets CRC24_POLY
> 
> ---
>   src/misc/update_crypto.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/misc/update_crypto.c b/src/misc/update_crypto.c
> index d3d555fc60..c161a3928d 100644
> --- a/src/misc/update_crypto.c
> +++ b/src/misc/update_crypto.c
> @@ -350,7 +350,7 @@ error:
>    * Copyright (C) The Internet Society (1998).  All Rights Reserved.
>    */
>   #define CRC24_INIT 0xB704CEL
> -#define CRC24_POLY 0x1864CFBL
> +#define CRC24_POLY 0x864CFBL /* see RFC 4880 Errata ID 5491 */
>   
>   static long crc_octets( uint8_t *octets, size_t len )
>   {
> -- 
> 2.20.1
> 
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
> 


More information about the vlc-devel mailing list