BIND 10 #363: "H" and "I" are probably harmful for PyArg_ParseTuple()

BIND 10 Development do-not-reply at isc.org
Thu Oct 7 12:36:02 UTC 2010


#363: "H" and "I" are probably harmful for PyArg_ParseTuple()
--------------------------------+-------------------------------------------
      Reporter:  jinmei         |        Owner:  jinmei               
          Type:  defect         |       Status:  new                  
      Priority:  minor          |    Milestone:  y2 12 month milestone
     Component:  DNSPacket API  |   Resolution:                       
      Keywords:                 |    Sensitive:  0                    
Estimatedhours:  0.0            |        Hours:  0                    
      Billable:  1              |   Totalhours:  0                    
      Internal:  0              |  
--------------------------------+-------------------------------------------

Comment(by jinmei):

 btw, the following is a list of lines containing "H" or "I" with
 !PyArg_ParseTuple():

 {{{
 edns_python.cc:303:    if (!PyArg_ParseTuple(args, "I", &size)) {
 message_python.cc:568:    if (PyArg_ParseTuple(args, "I", &i)) {
 message_python.cc:652:    if (!PyArg_ParseTuple(args, "H", &id)) {
 message_python.cc:884:    if (PyArg_ParseTuple(args, "I", &i)) {
 messagerenderer_python.cc:174:    if (!PyArg_ParseTuple(args, "I",
 &lengthlimit)) {
 name_python.cc:371:    if (!PyArg_ParseTuple(args, "I", &pos)) {
 name_python.cc:484:    } else if (PyArg_ParseTuple(args, "I", &n)) {
 rrclass_python.cc:170:        } else if (PyArg_ParseTuple(args, "I", &i))
 {
 rrttl_python.cc:163:        } else if (PyArg_ParseTuple(args, "I", &i)) {
 rrtype_python.cc:200:        } else if (PyArg_ParseTuple(args, "I", &i)) {
 }}}

-- 
Ticket URL: <http://bind10.isc.org/ticket/363#comment:1>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list