Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-637

Compile error: 'strncpy' output may be truncated copying 7 bytes from a string of length 7

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.1.0
    • Component/s: guacamole-server
    • Labels:
      None
    • Environment:
      Fedora 28

      Description

      Build error on Fedora 28:

      CC guac_svc/guacsvc_client_la-svc_service.lo
      guac_svc/svc_service.c: In function 'VirtualChannelEntry':
      guac_svc/svc_service.c:56:5: error: 'strncpy' output may be truncated copying 7 bytes from a string of length 7 [-Werror=stringop-truncation]
       strncpy(svc_plugin->plugin.channel_def.name, svc->name,
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
       GUAC_RDP_SVC_MAX_LENGTH);
       ~~~~~~~~~~~~~~~~~~~~~~~~
      cc1: all warnings being treated as errors
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mike.jumper Michael Jumper
                Reporter:
                TonyGeeUK T Gale
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: