Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue30502

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:Fix buffer handling of OBJ_obj2txt
Type:behaviorStage:resolved
Components:SSLVersions:Python 3.7, Python 3.6, Python 2.7
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To: christian.heimesNosy List: christian.heimes, serhiy.storchaka
Priority:criticalKeywords:patch

Created on2017-05-29 07:19 bychristian.heimes, last changed2022-04-11 14:58 byadmin. This issue is nowclosed.

Files
File nameUploadedDescriptionEdit
issue30502-simpler.diffserhiy.storchaka,2017-05-29 12:12
Pull Requests
URLStatusLinkedEdit
PR 1852closedchristian.heimes,2017-05-29 07:20
PR 2909mergedserhiy.storchaka,2017-07-27 08:37
PR 3321mergedchristian.heimes,2017-09-04 22:41
PR 3322mergedchristian.heimes,2017-09-04 22:50
Messages (7)
msg294679 -(view)Author: Christian Heimes (christian.heimes)*(Python committer)Date: 2017-05-29 07:19
Frawser Tweedle from Red Hat's identity management team found an issue in PyCA cryptography's handling of buffers for OpenSSL OBJ_obj2txt(). Cryptography fails to handle long OIDs as used by Active Directory.https://github.com/pyca/cryptography/pull/3612/https://bugzilla.redhat.com/show_bug.cgi?id=1455755CPython's ssl module doesn't handle buffer allocation for OBJ_obj2txt() correctly, too. A default buffer size of 255+1 makes the bug less likely to occur, though. We should fix the problem anyway.
msg294684 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2017-05-29 09:04
Can the common code of _create_tuple_for_attribute() and asn1obj2py() be shared?
msg294687 -(view)Author: Christian Heimes (christian.heimes)*(Python committer)Date: 2017-05-29 09:46
IMO it doesn't make sense to share a couple of lines of code. It makes the code even harder to read.
msg294690 -(view)Author: Serhiy Storchaka (serhiy.storchaka)*(Python committer)Date: 2017-05-29 12:12
Your PR LGTM. But I think the code can be much simpler.Here is a patch that shares common code and applies other simplifications to surrounded code.PR 1852 increases the total number of lines by 37 lines,issue30502-simpler.diff -- only by 3 lines.PR 1852: 1 file changed, 49 insertions(+), 12 deletions(-)issue30502-simpler.diff: 1 file changed, 46 insertions(+), 43 deletions(-)
msg301276 -(view)Author: Christian Heimes (christian.heimes)*(Python committer)Date: 2017-09-04 22:28
New changesete503ca52889bf66ac502702569e726caa7970299 by Christian Heimes (Serhiy Storchaka) in branch 'master':bpo-30502: Fix handling of long oids in ssl. (#2909)https://github.com/python/cpython/commit/e503ca52889bf66ac502702569e726caa7970299
msg301337 -(view)Author: Christian Heimes (christian.heimes)*(Python committer)Date: 2017-09-05 17:13
New changesetf201e886fc7aaeb50f5e945578c6aec2a59a5323 by Christian Heimes in branch '3.6':[3.6]bpo-30502: Fix handling of long oids in ssl. (GH-2909) (#3321)https://github.com/python/cpython/commit/f201e886fc7aaeb50f5e945578c6aec2a59a5323
msg301338 -(view)Author: Christian Heimes (christian.heimes)*(Python committer)Date: 2017-09-05 17:13
New changesetc9d668c0d8a6f3e8e72345e53d1dd34be172f16e by Christian Heimes in branch '2.7':[2.7]bpo-30502: Fix handling of long oids in ssl. (GH-2909). (#3322)https://github.com/python/cpython/commit/c9d668c0d8a6f3e8e72345e53d1dd34be172f16e
History
DateUserActionArgs
2022-04-11 14:58:47adminsetgithub: 74687
2017-09-05 22:38:14christian.heimessetstatus: open -> closed
stage: resolved
resolution: fixed
versions: - Python 3.5
2017-09-05 17:13:09christian.heimessetmessages: +msg301338
2017-09-05 17:13:06christian.heimessetmessages: +msg301337
2017-09-04 22:50:01christian.heimessetpull_requests: +pull_request3347
2017-09-04 22:41:48christian.heimessetpull_requests: +pull_request3346
2017-09-04 22:28:55christian.heimessetmessages: +msg301276
2017-07-27 08:37:23serhiy.storchakasetpull_requests: +pull_request2960
2017-05-29 12:12:08serhiy.storchakasetfiles: +issue30502-simpler.diff
keywords: +patch
messages: +msg294690
2017-05-29 09:46:54christian.heimessetmessages: +msg294687
2017-05-29 09:04:59serhiy.storchakasetnosy: +serhiy.storchaka
messages: +msg294684
2017-05-29 07:20:47christian.heimessetpull_requests: +pull_request1935
2017-05-29 07:19:13christian.heimescreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp