Skip to content

WAVE420 & WAVE511 driver compile error #1

@shirok1

Description

@shirok1
sample/helper/vpuhelper.c:1679:65: error: ‘%s’ directive output may be truncated writing up to 255 bytes into a region of size between 1 and 256 [-Werror=format-truncation=]
 1679 |             snprintf(pEncConfig->yuvFileName, MAX_FILE_PATH, "%s%s", yuvDir, pCfg->SrcFileName);
      |                                                                 ^~
sample/helper/vpuhelper.c:1679:13: note: ‘snprintf’ output between 1 and 511 bytes into a destination of size 256
 1679 |             snprintf(pEncConfig->yuvFileName, MAX_FILE_PATH, "%s%s", yuvDir, pCfg->SrcFileName);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-Wall -Werror should be changed in WaveDecode_buildroot.mak

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions