mbox series

[v2,0/2] fix coverity issues in encoder driver

Message ID 20230411055413.539-1-irui.wang@mediatek.com (mailing list archive)
Headers show
Series fix coverity issues in encoder driver | expand

Message

Irui Wang April 11, 2023, 5:54 a.m. UTC
two coverity issues in encoder driver, submit two changes for fix them.

changes compared with v1:
- separate into two changes.
---

Irui Wang (2):
  media: mediatek: vcodec: make sure array index is in valid range
  media: mediatek: vcodec: make sure pointer isn't NULL before used

 .../platform/mediatek/vcodec/mtk_vcodec_enc.c    |  2 +-
 .../mediatek/vcodec/mtk_vcodec_enc_drv.c         | 16 ++++++++++++----
 2 files changed, 13 insertions(+), 5 deletions(-)

Comments

Yunfei Dong April 11, 2023, 6:25 a.m. UTC | #1
Hi Irui,

On Tue, 2023-04-11 at 13:54 +0800, Irui Wang wrote:
> two coverity issues in encoder driver, submit two changes for fix
> them.
> 
Maybe better:

Submit two changes to fix two kind of coverity issues in encoder
driver.

Best Regards,
Yunfei Dong
> changes compared with v1:
> - separate into two changes.
> ---
> 
> Irui Wang (2):
>   media: mediatek: vcodec: make sure array index is in valid range
>   media: mediatek: vcodec: make sure pointer isn't NULL before used
> 
>  .../platform/mediatek/vcodec/mtk_vcodec_enc.c    |  2 +-
>  .../mediatek/vcodec/mtk_vcodec_enc_drv.c         | 16 ++++++++++++
> ----
>  2 files changed, 13 insertions(+), 5 deletions(-)
>