Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BugFix] fix BE crash when http api request for pprof/cmdline (backport #51077) #51131

Merged
merged 1 commit into from
Sep 19, 2024

Commits on Sep 19, 2024

  1. [BugFix] fix BE crash when http api request for pprof/cmdline (#51077)

    Why I'm doing:
    BE crash when http api request for pprof/cmdline
    curl -s --location-trusted -uroot:"" 'http://127.0.0.1:8040/pprof/cmdline'
    
    What I'm doing:
    max field width should be specified in fscanf() so that it does not overflow the buffer
    
    curl -s --location-trusted -uroot:"" 'http://127.0.0.1:8040/pprof/cmdline'
    /opensource/deploystarrocks/123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678912345678901234567890123456789012345678901234567890123456/123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678912345678901234567890123456789012345678901234567890123456/123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678912345678901234567890123456789012345678901234567890123456/12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567891234567890123456789012345678
    
    Fixes #51076
    
    Signed-off-by: Rohit Satardekar <[email protected]>
    (cherry picked from commit 3543f1d)
    rohitrs1983 authored and mergify[bot] committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    514491d View commit details
    Browse the repository at this point in the history