libavcodec/apedec.c:674: error: Integer Overflow L2
  ([0, +oo] - 1):unsigned32 by call to `ape_decode_value_3860`.

libavcodec/apedec.c:669:1: Parameter `ctx->riceY.k`
667. }
668. 
669. static void entropy_decode_mono_3860(APEContext *ctx, int blockstodecode)
     ^
670. {
671.     int32_t *decoded0 = ctx->decoded[0];

libavcodec/apedec.c:674:23: Call
672. 
673.     while (blockstodecode--)
674.         *decoded0++ = ape_decode_value_3860(ctx, &ctx->bc, &ctx->riceY);
                           ^
675. }
676. 

libavcodec/apedec.c:500:1: <LHS trace>
498. }
499. 
500. static inline int ape_decode_value_3860(APEContext *ctx, BitstreamContext *bc,
     ^
501.                                         APERice *rice)
502. {

libavcodec/apedec.c:500:1: Parameter `rice->k`
  498. }
  499. 
  500. static inline int ape_decode_value_3860(APEContext *ctx, BitstreamContext *bc,
       ^
  501.                                         APERice *rice)
  502. {

libavcodec/apedec.c:521:9: Binary operation: ([0, +oo] - 1):unsigned32 by call to `ape_decode_value_3860` 
  519.     rice->ksum += x - (rice->ksum + 8 >> 4);
  520.     if (rice->ksum < (rice->k ? 1 << (rice->k + 4) : 0))
  521.         rice->k--;
               ^
  522.     else if (rice->ksum >= (1 << (rice->k + 5)) && rice->k < 24)
  523.         rice->k++;
