[PATCH] fixed #2364
authorjeanlf <jeanlf@gpac.io>
Wed, 4 Jan 2023 10:25:11 +0000 (11:25 +0100)
committerMoritz Mühlenhoff <jmm@debian.org>
Mon, 19 Jun 2023 21:46:06 +0000 (22:46 +0100)
Gbp-Pq: Name CVE-2023-23144.patch

src/bifs/unquantize.c

index a4bfcbfbb91a141ad655a419ff62ec2789d0d8fe..160e9fe632de232b60fae914246d180983144ba8 100644 (file)
@@ -2,7 +2,7 @@
  *                     GPAC - Multimedia Framework C SDK
  *
  *                     Authors: Jean Le Feuvre
- *                     Copyright (c) Telecom ParisTech 2000-2012
+ *                     Copyright (c) Telecom ParisTech 2000-2023
  *                                     All rights reserved
  *
  *  This file is part of GPAC / BIFS codec sub-project
@@ -284,7 +284,7 @@ GF_Err Q_DecCoordOnUnitSphere(GF_BifsDecoder *codec, GF_BitStream *bs, u32 NbBit
        s32 value;
        Fixed tang[4], delta;
        s32 dir;
-
+       if (NbBits>32) return GF_NON_COMPLIANT_BITSTREAM;
        if (NbComp != 2 && NbComp != 3) return GF_BAD_PARAM;
 
        //only 2 or 3 comp in the quantized version