linux/drivers/media/platform/verisilicon
Hans Verkuil b66215e7b7 media: verisilicon: replace snprintf with strscpy+strlcat
Fixes this warning:

drivers/media/platform/verisilicon/hantro_drv.c: In function 'hantro_add_func':
drivers/media/platform/verisilicon/hantro_drv.c:902:49: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size 64 [-Wformat-truncation=]
  902 |         snprintf(vfd->name, sizeof(vfd->name), "%s-%s", match->compatible,
      |                                                 ^~
drivers/media/platform/verisilicon/hantro_drv.c:902:9: note: 'snprintf' output between 5 and 132 bytes into a destination of size 64
  902 |         snprintf(vfd->name, sizeof(vfd->name), "%s-%s", match->compatible,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  903 |                  funcid == MEDIA_ENT_F_PROC_VIDEO_ENCODER ? "enc" : "dec");
      |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/verisilicon/hantro_drv.c:902:49: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size 64 [-Wformat-truncation=]
  902 |         snprintf(vfd->name, sizeof(vfd->name), "%s-%s", match->compatible,
      |                                                 ^~
drivers/media/platform/verisilicon/hantro_drv.c:902:9: note: 'snprintf' output between 5 and 132 bytes into a destination of size 64
  902 |         snprintf(vfd->name, sizeof(vfd->name), "%s-%s", match->compatible,
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  903 |                  funcid == MEDIA_ENT_F_PROC_VIDEO_ENCODER ? "enc" : "dec");
      |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
2023-09-27 10:47:23 +02:00
..
hantro_drv.c media: verisilicon: replace snprintf with strscpy+strlcat 2023-09-27 10:47:23 +02:00
hantro_g1_h264_dec.c
hantro_g1_mpeg2_dec.c
hantro_g1_regs.h
hantro_g1_vp8_dec.c
hantro_g1.c
hantro_g2_hevc_dec.c media: hantro: postproc: Configure output regs to support 10bit 2022-09-24 09:00:00 +02:00
hantro_g2_regs.h
hantro_g2_vp9_dec.c
hantro_g2.c
hantro_h1_jpeg_enc.c
hantro_h1_regs.h
hantro_h264.c
hantro_hevc.c media: verisilicon: Simplify error handling in tile_buffer_reallocate() 2023-05-25 16:21:19 +02:00
hantro_hw.h media: verisilicon: Enable AV1 decoder on rk3588 2023-06-09 16:19:49 +01:00
hantro_jpeg.c
hantro_jpeg.h
hantro_mpeg2.c
hantro_postproc.c media: verisilicon: Do not enable G2 postproc downscale if source is narrower than destination 2023-09-27 09:39:55 +02:00
hantro_v4l2.c media: verisilicon: Fix TRY_FMT on encoder OUTPUT 2023-07-25 09:31:48 +02:00
hantro_v4l2.h media: verisilicon: Conditionally ignore native formats 2023-06-09 16:20:21 +01:00
hantro_vp8.c
hantro_vp9.c
hantro_vp9.h
hantro.h media: verisilicon: change confusingly named relaxed register access 2023-07-14 09:14:10 +02:00
imx8m_vpu_hw.c media: verisilicon: HEVC: Only propose 10 bits compatible pixels formats 2023-04-10 14:18:57 +01:00
Kconfig
Makefile media: verisilicon: Add film grain feature to AV1 driver 2023-06-09 16:19:27 +01:00
rockchip_av1_entropymode.c media: verisilicon: Add AV1 entropy helpers 2023-06-09 16:17:20 +01:00
rockchip_av1_entropymode.h media: verisilicon: Add AV1 entropy helpers 2023-06-09 16:17:20 +01:00
rockchip_av1_filmgrain.c media: platform: use capital "OR" for multiple licenses in SPDX 2023-09-27 09:39:56 +02:00
rockchip_av1_filmgrain.h media: verisilicon: Add film grain feature to AV1 driver 2023-06-09 16:19:27 +01:00
rockchip_vpu2_hw_h264_dec.c
rockchip_vpu2_hw_jpeg_enc.c
rockchip_vpu2_hw_mpeg2_dec.c
rockchip_vpu2_hw_vp8_dec.c
rockchip_vpu2_regs.h
rockchip_vpu981_hw_av1_dec.c media: verisilicon: Add film grain feature to AV1 driver 2023-06-09 16:19:27 +01:00
rockchip_vpu981_regs.h media: verisilicon: Add Rockchip AV1 decoder 2023-06-09 16:18:46 +01:00
rockchip_vpu_hw.c media: verisilicon: Enable AV1 decoder on rk3588 2023-06-09 16:19:49 +01:00
sama5d4_vdec_hw.c
sunxi_vpu_hw.c