Repository navigation
rgw: VLAs are no longer welcome - #68014
Conversation
Leaving them out results in link errors on unoptimized debug builds. Signed-off-by: Adam C. Emerson <[email protected]>
To convert case and separators. Signed-off-by: Adam C. Emerson <[email protected]>
Replacing the dimensions of an array that had been a regular int with a constexpr. Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
This is not a good function and it should be revisisted later. Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
And make other modernizations. Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
By eliminating `{upper,lower}case_underscore_http_attr` and using
`{upper,lower}case_dash_transform` instead.
Signed-off-by: Adam C. Emerson <[email protected]>
This was surprisingly more involved than you would think. Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
Signed-off-by: Adam C. Emerson <[email protected]>
|
jenkins test make check |
chardan
left a comment
There was a problem hiding this comment.
LGTM! Thank you for reorganizing some of these things. I am really happy to see this happen-- greatly appreciated!
|
What's the context on this? |
VLAs are dangerous, error prone, and not actually part of standard C++. |
|
@nhoad Everything @adamemerson said. In particular C99 VLAs offer no way to detect overflow or capacity, and (this cannot be overstated) are very easy to use unintentionally. Code built around them can silently "work" for years and then explode, and the resultant bugs are often very difficult to track down. C++ deliberately did not adopt the version of them used by C99. |
|
@adamemerson On the QA run that has this and only one other PR in it I'm seeing a new error -- "test_bucket_logging_request_id". Given how many files this touches, is there any way this is responsible. I don't see this failure on other main branch based QA runs. Here are the log files:
|
I shall investigate! |
|
pr testing completed and got approval from @ivancich , tracker details: https://tracker.ceph.com/issues/76554. |
These functions for translating between HTTP header and environment format are used in the fix. They were included in commit 966f5c6 as part of PR [rgw: VLAs are no longer welcome](#68014). Signed-off-by: Adam C. Emerson <[email protected]>
These functions for translating between HTTP header and environment format are used in the fix. They were included in commit 966f5c6 as part of PR [rgw: VLAs are no longer welcome](#68014). Signed-off-by: Adam C. Emerson <[email protected]>
These functions for translating between HTTP header and environment format are used in the fix. They were included in commit 966f5c6 as part of PR [rgw: VLAs are no longer welcome](ceph#68014). Signed-off-by: Adam C. Emerson <[email protected]>
These functions for translating between HTTP header and environment format are used in the fix. They were included in commit 966f5c6 as part of PR [rgw: VLAs are no longer welcome](ceph#68014). Signed-off-by: Adam C. Emerson <[email protected]>
Rebased and cleaned up.
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.