Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • BIND BIND
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 598
    • Issues 598
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 95
    • Merge requests 95
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source ProjectsISC Open Source Projects
  • BINDBIND
  • Issues
  • #3562
Closed
Open
Issue created Sep 26, 2022 by Mark Andrews@markaOwner

suffix may be used before being assigned in qmin/ans3/ans.py

Coverity reports Bad use of null-like value

139    if lqname == "zoop.boing." and rrtype == NS:
     	CID 350722 (#1 of 7): Bad use of null-like value (FORWARD_NULL) [select issue]
140        r.answer.append(
141            dns.rrset.from_text(lqname + suffix, 1, IN, NS, "ns3." + suffix)
142        )
143        r.flags |= dns.flags.AA
   	11. Condition endswith(lqname, "icky.ptang.zoop.boing."), taking true branch.
144    elif endswith(lqname, "icky.ptang.zoop.boing."):
   	
CID 350722 (#5 of 7): Bad use of null-like value (FORWARD_NULL)
12. invalid_operation: Invalid operation on null-like value suffix.
145        r.authority.append(
146            dns.rrset.from_text(
147                "icky.ptang.zoop.boing." + suffix,
148                1,
149                IN,
150                NS,
151                "a.bit.longer.ns.name." + suffix,
152            )
153        )
154    elif endswith("icky.ptang.zoop.boing.", lqname):
     	CID 350722 (#3 of 7): Bad use of null-like value (FORWARD_NULL) [select issue]
155        r.authority.append(
156            dns.rrset.from_text(
157                "zoop.boing." + suffix,
158                1,
159                IN,
160                SOA,
161                "ns3." + suffix + " hostmaster.arpa. 2018050100 1 1 1 1",
162            )
163        )
164        if bad:
165            r.set_rcode(NXDOMAIN)
166        if ugly:
167            r.set_rcode(FORMERR)
168    elif endswith(lqname, "zoop.boing."):
     	CID 350722 (#4 of 7): Bad use of null-like value (FORWARD_NULL) [select issue]
169        r.authority.append(
Assignee
Assign to
Time tracking