GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — sprintf deprecation warning on macOS for datetimemodule · Issue #103733 · python/cpython

sprintf deprecation warning on macOS for datetimemodule #103733

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
sprintf deprecation warning on macOS for datetimemodule#103733
Copy link
Labels
OS-maceasytype-featureA feature request or enhancementA feature request or enhancement

Description

@corona10
corona10
opened on Apr 24, 2023
Issue body actions

How to reproduce

./configure --with-address-sanitizer && make

Deprecation warning

./Modules/_datetimemodule.c:1566:9: warning: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Wdeprecated-declarations]
        sprintf(freplacement, "%06d", 0);

Activity

  1. corona10
    added
    type-featureA feature request or enhancementA feature request or enhancement
    OS-mac
    easy
    on Apr 24, 2023
  2. corona10 commented on Apr 24, 2023

    @corona10
    corona10
    on Apr 24, 2023
    MemberAuthor
    More actions

    cc @ned-deily @pganssle

  3. corona10 commented on Apr 24, 2023

    @corona10
    corona10
    on Apr 24, 2023
    MemberAuthor
    More actions

    I expect that the solution will not be hard, so I label the issue as easy

  4. pganssle commented on Apr 24, 2023

    @pganssle
    pganssle
    on Apr 24, 2023
    Member
    More actions

    Seems like a good sprint issue? Assuming we can detect this in the tests easily or otherwise verify the fix.

    Reacted by Donghee Na
    Reacted by Donghee Na
  5. arhadthedev commented on Apr 24, 2023

    @arhadthedev
    arhadthedev
    on Apr 24, 2023
    Member
    More actions

    Can PyOS_snprintf() be a drop-in replacement here? (edit: just asking, I will not take this issue).

  6. corona10 commented on Apr 24, 2023

    @corona10
    corona10
    on Apr 24, 2023
    MemberAuthor
    More actions

    Seems like a good sprint issue? Assuming we can detect this in the tests easily or otherwise verify the fix.

    I will be happy if it can be used for the sprint issue. But I leave tomorrow, so some of the core dev can do it on the sprint.

  7. arhadthedev commented on Apr 24, 2023

    @arhadthedev
    arhadthedev
    on Apr 24, 2023
    Member
    More actions

    A parent issue: A duplicate of gh-101703.

  8. sobolevn commented on Apr 24, 2023

    @sobolevn
    sobolevn
    on Apr 24, 2023
    Member
    More actions

    Thanks a lot, @arhadthedev!

    I will highly appreciate a review of #101729 :)
    It seems ready to me.

  9. terryjreedy
    closed this as not plannedon Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-maceasytype-featureA feature request or enhancementA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.