René's URL Explorer Experiment


Title: __str__ method is not safe · Issue #83 · oremanj/python-netfilterqueue · GitHub

Open Graph Title: __str__ method is not safe · Issue #83 · oremanj/python-netfilterqueue

X Title: __str__ method is not safe · Issue #83 · oremanj/python-netfilterqueue

Description: This code results with segmentation fault from typing import List import netfilterqueue from netfilterqueue import NetfilterQueue packet_storage: List[netfilterqueue.Packet] = [] def print_packets(): for packet in packet_storage: print(p...

Open Graph Description: This code results with segmentation fault from typing import List import netfilterqueue from netfilterqueue import NetfilterQueue packet_storage: List[netfilterqueue.Packet] = [] def print_packets(...

X Description: This code results with segmentation fault from typing import List import netfilterqueue from netfilterqueue import NetfilterQueue packet_storage: List[netfilterqueue.Packet] = [] def print_packets(...

Opengraph URL: https://github.com/oremanj/python-netfilterqueue/issues/83

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"__str__ method is not safe","articleBody":"This code results with segmentation fault\r\n\r\n```\r\nfrom typing import List\r\n\r\nimport netfilterqueue\r\nfrom netfilterqueue import NetfilterQueue\r\n\r\n\r\npacket_storage: List[netfilterqueue.Packet] = []\r\n\r\n\r\ndef print_packets():\r\n    for packet in packet_storage:\r\n        print(packet)\r\n\r\n\r\ndef handle_packet(packet: netfilterqueue.Packet):\r\n    packet.retain()\r\n    packet.accept()\r\n    packet_storage.append(packet)\r\n    print_packets()\r\n\r\n\r\nq = NetfilterQueue()\r\nq.bind(11, handle_packet)\r\nq.run()\r\n```\r\nLooks like __str__ method is not safe, because there is no check for NULL  of `self.payload`:\r\n```\r\n    def __str__(self):\r\n        cdef iphdr *hdr = \u003ciphdr*\u003eself.payload\r\n        protocol = PROTOCOLS.get(hdr.protocol, \"Unknown protocol\")\r\n        return \"%s packet, %s bytes\" % (protocol, self.payload_len)\r\n ```\r\n\r\nIs this ok, can that be fixed? \r\n ","author":{"url":"https://github.com/elqver","@type":"Person","name":"elqver"},"datePublished":"2022-02-08T13:55:34.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/83/python-netfilterqueue/issues/83"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6221a2cc-db1a-4114-8c7f-910383ae0e5f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB186:22D870:15CC439:1C4CE03:69908395
html-safe-noncef5df31863660048cc55db1c271755c7b48464d0a6cf1f5fdec22b128abe2e536
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTg2OjIyRDg3MDoxNUNDNDM5OjFDNENFMDM6Njk5MDgzOTUiLCJ2aXNpdG9yX2lkIjoiNTQzMDc2MDkwMjI5ODIwNzEyNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf11e43f7892a87450044eda8910560ac5ef10e79827f9110a702f51218fb366a
hovercard-subject-tagissue:1127290646
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/oremanj/python-netfilterqueue/83/issue_layout
twitter:imagehttps://opengraph.githubassets.com/dce8ce73c2694d846f7062cd051d465affa66cbef57dbc0cc9c41995d0ec7d2c/oremanj/python-netfilterqueue/issues/83
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/dce8ce73c2694d846f7062cd051d465affa66cbef57dbc0cc9c41995d0ec7d2c/oremanj/python-netfilterqueue/issues/83
og:image:altThis code results with segmentation fault from typing import List import netfilterqueue from netfilterqueue import NetfilterQueue packet_storage: List[netfilterqueue.Packet] = [] def print_packets(...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameelqver
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-preview
go-importgithub.com/oremanj/python-netfilterqueue git https://github.com/oremanj/python-netfilterqueue.git
octolytics-dimension-user_id4316136
octolytics-dimension-user_loginoremanj
octolytics-dimension-repository_id1736893
octolytics-dimension-repository_nwooremanj/python-netfilterqueue
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1736893
octolytics-dimension-repository_network_root_nwooremanj/python-netfilterqueue
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/oremanj/python-netfilterqueue/issues/83#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foremanj%2Fpython-netfilterqueue%2Fissues%2F83
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foremanj%2Fpython-netfilterqueue%2Fissues%2F83
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=oremanj%2Fpython-netfilterqueue
Reloadhttps://github.com/oremanj/python-netfilterqueue/issues/83
Reloadhttps://github.com/oremanj/python-netfilterqueue/issues/83
Reloadhttps://github.com/oremanj/python-netfilterqueue/issues/83
oremanj https://github.com/oremanj
python-netfilterqueuehttps://github.com/oremanj/python-netfilterqueue
Notifications https://github.com/login?return_to=%2Foremanj%2Fpython-netfilterqueue
Fork 100 https://github.com/login?return_to=%2Foremanj%2Fpython-netfilterqueue
Star 269 https://github.com/login?return_to=%2Foremanj%2Fpython-netfilterqueue
Code https://github.com/oremanj/python-netfilterqueue
Issues 7 https://github.com/oremanj/python-netfilterqueue/issues
Pull requests 2 https://github.com/oremanj/python-netfilterqueue/pulls
Actions https://github.com/oremanj/python-netfilterqueue/actions
Projects 0 https://github.com/oremanj/python-netfilterqueue/projects
Wiki https://github.com/oremanj/python-netfilterqueue/wiki
Security 0 https://github.com/oremanj/python-netfilterqueue/security
Insights https://github.com/oremanj/python-netfilterqueue/pulse
Code https://github.com/oremanj/python-netfilterqueue
Issues https://github.com/oremanj/python-netfilterqueue/issues
Pull requests https://github.com/oremanj/python-netfilterqueue/pulls
Actions https://github.com/oremanj/python-netfilterqueue/actions
Projects https://github.com/oremanj/python-netfilterqueue/projects
Wiki https://github.com/oremanj/python-netfilterqueue/wiki
Security https://github.com/oremanj/python-netfilterqueue/security
Insights https://github.com/oremanj/python-netfilterqueue/pulse
New issuehttps://github.com/login?return_to=https://github.com/oremanj/python-netfilterqueue/issues/83
New issuehttps://github.com/login?return_to=https://github.com/oremanj/python-netfilterqueue/issues/83
#89https://github.com/oremanj/python-netfilterqueue/pull/89
__str__ method is not safehttps://github.com/oremanj/python-netfilterqueue/issues/83#top
#89https://github.com/oremanj/python-netfilterqueue/pull/89
https://github.com/elqver
https://github.com/elqver
elqverhttps://github.com/elqver
on Feb 8, 2022https://github.com/oremanj/python-netfilterqueue/issues/83#issue-1127290646
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.