Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

cmd

  • Clone with SSH
  • Clone with HTTPS
  • Forked from Reform / reform-boundary-uboot
    5563 commits behind the upstream repository.
    user avatar
    Tom Rini authored
    As the code currently stands, we first check that the length of the
    given command line, along with ip_str/mac_str along with an additional 1
    for the NULL termination will fit within the buffer we have, and if not,
    we return an error.  The way this code was originally written however
    left Coverity "unhappy" due to using strcat rather than strncat.
    Switching this to strncat however causes clang to be unhappy that we
    aren't enforcing the "1" portion within strncat.  Rather than further
    re-work the code to include a "- 1" in this case as well, make the
    strcat code only be done within the else side of the length test.  This
    keeps both clang and Coverity happy.
    
    Fixes: 48ee0a87 ("cmd/pxe.c: Rework initrd and bootargs handling slightly")
    Signed-off-by: default avatarTom Rini <trini@konsulko.com>
    59ee8f83
    History