CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 23:00:27 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/ksh93/ksh.git
etag: W/"ab5a4eab8f03fcfca92d2cedb859f747"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=uIlau%2Fvq1eMx%2BBlfkzZSXdPNrZZyivHW807eVOz7LxNshyzaErvxWocr9opg7DJ5%2BxqCfXHIHxDrc1oUqyAmorgK45b4FyuK%2FjWaK9MeqGlpv9WnQgqJM%2BMKVN%2Bv88QZhQpEHLR2WmZrhq2lUOOiGVQU%2FYAUxHoDmIHEU9alY4PGJEPoPvKqH09MdD6TFGubYIr%2BoJKLG%2F%2FF7G95bG9pFlnITrAC%2FyV%2FOV%2BNsBWMBVEYU3EnAEIgTfZCW6SeEbE2UiionXiwmKRyedi3%2Bny9AQ%3D%3D--dS4c3o1a2VtIb8aJ--yedjanKLY7e0TE2FEoOixA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.587263489.1753570827; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 23:00:27 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 23:00:27 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D19E:1369AB:95BF0C:C3EDF4:68855E0B
combining alarm and IFS caused segfault (rhbz#1176670) · ksh93/ksh@18b3f4a · GitHub
Copy file name to clipboardExpand all lines: src/cmd/ksh93/bltins/alarm.c
Copy file name to clipboardExpand all lines: src/cmd/ksh93/tests/builtins.sh
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit 18b3f4a
committed
combining alarm and IFS caused segfault (rhbz#1176670)
The undocumented alarm builtin executes actions unsafely so that
'read' with an IFS assignment crashed when an alarm was triggered.
This applies an edited version of a Red Hat patch:
https://src.fedoraproject.org/rpms/ksh/blob/642af4d6/f/ksh-20120801-alarmifs.patch
Prior discussion:
https://bugzilla.redhat.com/1176670
src/cmd/ksh93/bltins/alarm.c:
- Add a TODO note based on dgk's 2014 email cited in the RH bug.
- When executing the trap function, save and restore the IFS table.
src/cmd/ksh93/sh/init.c: get_ifs():
- Remove now-unnecessary SHOPT_MULTIBYTE preprocessor directives as
8477d2c lets the compiler optimise out multibyte code if needed.
- Initialise the 0 position of the IFS table to S_EOF. This
corresponds with the static state tables in data/lexstates.c.
src/cmd/ksh93/tests/builtins.sh:
- Crash test.1 parent f7c3565 commit 18b3f4aCopy full SHA for 18b3f4a
File tree
Expand file treeCollapse file tree
3 files changed
+41
-8
lines changedFilter options
- src/cmd/ksh93
- bltins
- sh
- tests
Expand file treeCollapse file tree
3 files changed
+41
-8
lines changedsrc/cmd/ksh93/bltins/alarm.c
Copy file name to clipboardExpand all lines: src/cmd/ksh93/bltins/alarm.c+17Lines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
29 | 41 |
| |
30 | 42 |
| |
31 | 43 |
| |
| |||
141 | 153 |
| |
142 | 154 |
| |
143 | 155 |
| |
| 156 | + | |
| 157 | + | |
| 158 | + | |
144 | 159 |
| |
| 160 | + | |
| 161 | + | |
145 | 162 |
| |
146 | 163 |
| |
147 | 164 |
| |
|
+2-8Lines changed: 2 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
503 | 503 |
| |
504 | 504 |
| |
505 | 505 |
| |
506 |
| - | |
507 |
| - | |
508 |
| - | |
509 |
| - | |
510 |
| - | |
| 506 | + | |
511 | 507 |
| |
512 |
| - | |
513 |
| - | |
514 | 508 |
| |
515 | 509 |
| |
516 | 510 |
| |
517 | 511 |
| |
518 | 512 |
| |
519 | 513 |
| |
520 |
| - | |
521 | 514 |
| |
522 | 515 |
| |
523 | 516 |
| |
| |||
533 | 526 |
| |
534 | 527 |
| |
535 | 528 |
| |
| 529 | + | |
536 | 530 |
| |
537 | 531 |
| |
538 | 532 |
| |
|
src/cmd/ksh93/tests/builtins.sh
Copy file name to clipboardExpand all lines: src/cmd/ksh93/tests/builtins.sh+22Lines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1055 | 1055 |
| |
1056 | 1056 |
| |
1057 | 1057 |
| |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
1058 | 1080 |
| |
1059 | 1081 |
|
You can’t perform that action at this time.
0 commit comments