Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • libX11 libX11
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 71
    • Issues 71
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 15
    • Merge requests 15
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorgxorg
  • lib
  • libX11libX11
  • Issues
  • #133
Closed
Open
Issue created May 28, 2021 by Matthieu Herrb@mherrbDeveloper

XChangeProperty regression

Date: Fri, 28 May 2021 13:48:53 +0200
From: Karsten Trulsen <karstent@math.uio.no>
To: matthieu@herrb.eu
Subject: Regarding: Reject string longer than USHRT_MAX before sending them on the wire

Dear Matthieu Herrb

    if (strlen(name) >= USHRT_MAX)         return 0;     return XChangeProperty(dpy, w, XA_WM_NAME, XA_STRING, /*  */                            8, PropModeReplace, (_Xconst unsigned char *)name,                            name ? (int) strlen(name) : 0);

The test recently added, to avoid long strings, unfortunately fails with segmentation fault if name is NULL.

For the function XChangeProperty it is not an error if name i NULL.

This change breaks valid code.

Best regards, Karsten Trulsen

Edited May 28, 2021 by Matthieu Herrb
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking