(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c) |
| |
| 4283 | | | static PDUprops * |
| 4284 | | | getPDUprops(PDUprops *out, guint offset, guint class, guint tag, guint cons) |
| 4285 | | | { |
| 4286 | | | statestack pos, pos2, save_pos; |
| 4287 | | | PDUinfo *info; |
| 4288 | | | const char *ret, *tmp; |
| 4289 | | | int typeflags = 0, donext = 0, pushed = 0, cons_handled = 0; |
| 4290 | | | static char namestr[64]; |
| 4291 | | | static char posstr[40]; |
| 4292 | | | static char noname[] = "*noname*"; |
| 4293 | | | static PDUprops constructed_save; |
| 4294 | | | |
| 4295 | | | if (PDUstatec > 0) |
Event 1:
Taking true branch. PDUstatec > 0 evaluates to true.
hide
|
|
| 4296 | | | pos = POPSTATE; |
| 4297 | | | |
| 4298 | | | |
| 4299 | | | |
| 4300 | | | if ((PDUstatec > 0) && (pos.type & TBL_CONSTRUCTED)) {
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
252 | #define TBL_CONSTRUCTED 0x01000000 /* unexpectedly constructed entry */ |
| |
|
Event 2:
Skipping " if". - PDUstatec > 0 evaluates to true.
- pos.type & 16777216 evaluates to false.
hide
|
|
| 4301 | | | |
| 4302 | | | g_sprintf(posstr, "==off=%d %c%d%c", offset, tag_class[class], tag, cons?'c':'p'); |
| 4303 | | | showstack(&pos, posstr, 3); |
| 4304 | | | pos.offset = offset; |
| 4305 | | | pos.type &= ~TBL_CONSTRUCTED;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
252 | #define TBL_CONSTRUCTED 0x01000000 /* unexpectedly constructed entry */ |
| |
|
| 4306 | | | PUSHNODE(pos); |
| 4307 | | | PUSHNODE(pos); |
| 4308 | | | *out = constructed_save; |
| 4309 | | | if (asn1_verbose) |
| 4310 | | | g_message(" return for constructed %s (%s)%s",
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4311 | | | TBLTYPE(out->type), out->typename, out->name); |
| 4312 | | | return out; |
| 4313 | | | } |
| 4314 | | | |
| 4315 | | | save_pos = pos; |
| 4316 | | | |
| 4317 | | | out->type = 0; |
| 4318 | | | out->name = 0; |
| 4319 | | | out->typename = "*error*"; |
| 4320 | | | out->fullname = 0; |
| 4321 | | | out->flags = 0; |
| 4322 | | | out->data = 0; |
| 4323 | | | out->value_id = -1; |
| 4324 | | | out->type_id = -1; |
| 4325 | | | |
| 4326 | | | if (PDUstatec <= 0) { |
Event 3:
Skipping " if". PDUstatec <= 0 evaluates to false.
hide
|
|
| 4327 | | | if (PDUstatec > -10) { |
| 4328 | | | if (asn1_verbose) |
| 4329 | | | g_message(">>off=%d stack underflow, return", offset);
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4330 | | | } |
| 4331 | | | if (PDUstatec == -10) { |
| 4332 | | | if (asn1_verbose) |
| 4333 | | | g_message(">>off=%d stack underflow, return, no more messages", offset);
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4334 | | | } |
| 4335 | | | out->name = "*underflow*"; |
| 4336 | | | out->flags |= OUT_FLAG_noname; |
| 4337 | | | PDUerrcount++; |
| 4338 | | | return out; |
| 4339 | | | } |
| 4340 | | | g_sprintf(posstr, "==off=%d %c%d%c", offset, tag_class[class], tag, cons?'c':'p'); |
| 4341 | | | |
| 4342 | | | showstack(&pos, posstr, 3); |
| 4343 | | | |
| 4344 | | | ret = noname; |
| 4345 | | | |
| 4346 | | | if (class == ASN1_EOI) { |
Event 6:
Taking true branch. class == 4 evaluates to true.
hide
|
|
| 4347 | | | |
| 4348 | | | if (pos.type & TBL_REFERENCE_pop) {
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
250 | #define TBL_REFERENCE_pop 0x00400000 /* reference handled, do pop i.s.o. next */ |
| |
|
Event 7:
Taking true branch. pos.type & 4194304 evaluates to true.
hide
|
|
| 4349 | | | if (asn1_verbose) g_message(" EOI: reference pop");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
Event 8:
Skipping " if". asn1_verbose evaluates to false.
hide
|
|
| 4350 | | | pos = POPSTATE; |
| 4351 | | | } else |
| 4352 | | | switch(pos.type & TBL_TYPEmask) { |
| 4353 | | | case TBL_TYPEREF: |
| 4354 | | | if (asn1_verbose) g_message(" EOI: pop typeref");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4355 | | | pos = POPSTATE; |
| 4356 | | | break; |
| 4357 | | | case TBL_CHOICE_done: |
| 4358 | | | if (asn1_verbose) g_message(" EOI: mark choice");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4359 | | | pos = POPSTATE; |
| 4360 | | | pos.type |= TBL_CHOICE_made; |
| 4361 | | | PUSHNODE(pos); |
| 4362 | | | break; |
| 4363 | | | default: |
| 4364 | | | break; |
| 4365 | | | } |
| 4366 | | | |
| 4367 | | | |
| 4368 | | | pos = POPSTATE; |
| 4369 | | | if (pos.node == NULL) { |
Event 9:
Skipping " if". pos.node == (void *)0 evaluates to false.
hide
|
|
| 4370 | | | if (asn1_verbose) g_message(" EOI, pos.node == NULL");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4371 | | | out->name = "*no-name-EOI*"; |
| 4372 | | | out->flags |= OUT_FLAG_noname; |
| 4373 | | | PDUerrcount++; |
| 4374 | | | return out; |
| 4375 | | | } |
| 4376 | | | |
| 4377 | | | info = getinfo(pos.node); |
| 4378 | | | ret = info->name; |
| 4379 | | | tmp = TBLTYPE(info->type); |
| 4380 | | | if (offset != pos.offset) { |
Event 10:
Taking true branch. offset != pos.offset evaluates to true.
hide
|
|
| 4381 | | | if (asn1_verbose) |
Event 11:
Skipping " if". asn1_verbose evaluates to false.
hide
|
|
| 4382 | | | g_message(" *EOI %s:%s mismatch, EOIoffset=%d, stack=%d",
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4383 | | | tmp, ret, offset, pos.offset); |
| 4384 | | | while ((offset < pos.offset) && (PDUstatec > 0)) { |
| 4385 | | | pos = POPSTATE; |
| 4386 | | | if (asn1_verbose) |
| 4387 | | | g_message(" EOI pop, EOIoffset=%d, stack=%d",
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4388 | | | offset, pos.offset); |
| 4389 | | | } |
| 4390 | | | if (offset != pos.offset) |
Event 13:
Taking true branch. offset != pos.offset evaluates to true.
hide
|
|
| 4391 | | | PDUerrcount++; |
| 4392 | | | } else { |
| 4393 | | | if (asn1_verbose) g_message(" EOI %s:%s OK, offset=%d", tmp, ret, offset);
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4394 | | | } |
| 4395 | | | } else { |
| 4396 | | | |
| 4397 | | | |
| 4398 | | | if ((class == BER_CLASS_UNI) && (tag == BER_UNI_TAG_EOC)) { |
| 4399 | | | PUSHNODE(pos); |
| 4400 | | | ret = "explicit-EOC"; |
| 4401 | | | if (asn1_verbose) g_message(" return '%s', ignore", ret);
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4402 | | | out->name = ret; |
| 4403 | | | out->typename = "ASN1"; |
| 4404 | | | return out; |
| 4405 | | | } |
| 4406 | | | |
| 4407 | | | |
| 4408 | | | |
| 4409 | | | if (pos.node == NULL) { |
| 4410 | | | if (asn1_verbose) g_message(" pos.node == NULL");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4411 | | | out->name = "*no-name*"; |
| 4412 | | | out->flags |= OUT_FLAG_noname; |
| 4413 | | | PDUerrcount++; |
| 4414 | | | return out; |
| 4415 | | | } |
| 4416 | | | |
| 4417 | | | |
| 4418 | | | |
| 4419 | | | switch (pos.type & TBL_TYPEmask) { |
| 4420 | | | case TBL_SEQUENCE: |
| 4421 | | | case TBL_SET: |
| 4422 | | | break; |
| 4423 | | | default: |
| 4424 | | | if (pos.type & TBL_CHOICE_made) { |
| 4425 | | | if (asn1_verbose) g_message(" finish choice");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4426 | | | donext = 1; |
| 4427 | | | } |
| 4428 | | | break; |
| 4429 | | | } |
| 4430 | | | |
| 4431 | | | info = getinfo(pos.node); |
| 4432 | | | |
| 4433 | | | if (pos.type & TBL_REPEAT) {
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
244 | #define TBL_REPEAT 0x00010000 /* This type may be repeated, a flag in word TBLTypeId */ |
| |
|
| 4434 | | | switch(pos.type & TBL_TYPEmask) { |
| 4435 | | | case TBL_CHOICE: |
| 4436 | | | if (asn1_verbose) g_message(" repeating choice");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4437 | | | break; |
| 4438 | | | default: |
| 4439 | | | if (asn1_verbose) g_message(" seqof: repeat start");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4440 | | | |
| 4441 | | | |
| 4442 | | | |
| 4443 | | | if (asn1_verbose) g_message(" seqof: first got %c%d, found %c%d",
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4444 | | | tag_class[class], tag, |
| 4445 | | | tag_class[info->tclass], info->tag); |
| 4446 | | | if ( MATCH ) { |
| 4447 | | | |
| 4448 | | | PUSHNODE(pos); |
| 4449 | | | ret = getname(pos.node); |
| 4450 | | | if (asn1_verbose) g_message(" return for repeat '%s'", ret);
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4451 | | | out->type = (pos.type & TBL_TYPEmask); |
| 4452 | | | out->typename = info->typename; |
| 4453 | | | out->name = ret; |
| 4454 | | | out->value_id = info->value_id; |
| 4455 | | | out->type_id = info->type_id; |
| 4456 | | | if (ISANONYMOUS) { |
| 4457 | | | if (asn1_verbose) g_message(" anonymous: dontshow");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4458 | | | if (asn1_debug) |
| 4459 | | | out->flags |= OUT_FLAG_dontshow; |
| 4460 | | | else |
| 4461 | | | out->name = empty; |
| 4462 | | | } |
| 4463 | | | return out; |
| 4464 | | | } else { |
| 4465 | | | |
| 4466 | | | pos2 = pos; |
| 4467 | | | CHILD;
x /usr/include/glib-2.0/glib/gnode.h |
| |
280 | #define g_node_first_child(node) ((node) ? \ |
281 | ((GNode*) (node))->children : NULL) |
| |
|
| 4468 | | | if (pos.node) { |
| 4469 | | | info = getinfo(pos.node); |
| 4470 | | | if (asn1_verbose) |
| 4471 | | | g_message(" seqof: child: got %c%d, found %c%d",
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4472 | | | tag_class[class], tag, |
| 4473 | | | tag_class[info->tclass], info->tag); |
| 4474 | | | } |
| 4475 | | | if (pos2.type & TBL_CHOICE_repeat) { |
| 4476 | | | pos = POPSTATE; |
| 4477 | | | if (asn1_verbose) |
| 4478 | | | g_message(" repeating a choice, %s",
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4479 | | | getname(pos.node)); |
| 4480 | | | pos.type = TBL_CHOICE_immediate; |
| 4481 | | | } else { |
| 4482 | | | if ( pos.node && ! MATCH) { |
| 4483 | | | donext = 1; |
| 4484 | | | if (asn1_verbose) |
| 4485 | | | g_message(" seqof: no repeat, force next");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4486 | | | } |
| 4487 | | | |
| 4488 | | | pos = pos2; |
| 4489 | | | } |
| 4490 | | | } |
| 4491 | | | break; |
| 4492 | | | } |
| 4493 | | | } else if (pos.type & TBL_REFERENCE_pop) {
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
250 | #define TBL_REFERENCE_pop 0x00400000 /* reference handled, do pop i.s.o. next */ |
| |
|
| 4494 | | | if (asn1_verbose) g_message(" reference pop, donext");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4495 | | | pos = POPSTATE; |
| 4496 | | | donext = 1; |
| 4497 | | | } else if (pos.type & TBL_SEQUENCE_done) {
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
247 | #define TBL_SEQUENCE_done 0x00080000 /* children have been processed */ |
| |
|
| 4498 | | | if (pos.type & TBL_SEQUENCE_choice) {
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
251 | #define TBL_SEQUENCE_choice 0x00800000 /* this sequence is a first of a repeating choice */ |
| |
|
| 4499 | | | pos = POPSTATE; |
| 4500 | | | } else { |
| 4501 | | | donext = 1; |
| 4502 | | | if (asn1_verbose) g_message(" sequence done, donext");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4503 | | | } |
| 4504 | | | } |
| 4505 | | | |
| 4506 | | | if (pos.type & TBL_REFERENCE) {
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
249 | #define TBL_REFERENCE 0x00200000 /* This entry is result of a typeref */ |
| |
|
| 4507 | | | if (asn1_verbose) g_message(" reference change ref -> pop");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4508 | | | pos.type ^= (TBL_REFERENCE | TBL_REFERENCE_pop);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
249 | #define TBL_REFERENCE 0x00200000 /* This entry is result of a typeref */ |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
250 | #define TBL_REFERENCE_pop 0x00400000 /* reference handled, do pop i.s.o. next */ |
| |
|
| 4509 | | | } |
| 4510 | | | |
| 4511 | | | pos.offset = offset; |
| 4512 | | | |
| 4513 | | | ret = pos.name; |
| 4514 | | | |
| 4515 | | | if (donext) { |
| 4516 | | | if (asn1_verbose) g_message(" donext");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4517 | | | NEXT;
x /usr/include/glib-2.0/glib/gnode.h |
| |
268 | #define g_node_next_sibling(node) ((node) ? \ |
269 | ((GNode*) (node))->next : NULL) |
| |
|
| 4518 | | | } else { |
| 4519 | | | switch(pos.type & TBL_TYPEmask) { |
| 4520 | | | case TBL_SETOF: |
| 4521 | | | case TBL_SEQUENCEOF: |
| 4522 | | | if ((pos.type & TBL_REPEAT) == 0) {
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
244 | #define TBL_REPEAT 0x00010000 /* This type may be repeated, a flag in word TBLTypeId */ |
| |
|
| 4523 | | | pos.type |= TBL_REPEAT;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
244 | #define TBL_REPEAT 0x00010000 /* This type may be repeated, a flag in word TBLTypeId */ |
| |
|
| 4524 | | | PUSHNODE(pos); |
| 4525 | | | CHILD;
x /usr/include/glib-2.0/glib/gnode.h |
| |
280 | #define g_node_first_child(node) ((node) ? \ |
281 | ((GNode*) (node))->children : NULL) |
| |
|
| 4526 | | | pushed++; |
| 4527 | | | |
| 4528 | | | typeflags |= TBL_REPEAT;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
244 | #define TBL_REPEAT 0x00010000 /* This type may be repeated, a flag in word TBLTypeId */ |
| |
|
| 4529 | | | if (asn1_verbose) |
| 4530 | | | g_message(" seqof: set repeat mark [push,child]");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4531 | | | } else { |
| 4532 | | | if (asn1_verbose) |
| 4533 | | | g_message(" seqof: end of repeat loop [next]");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4534 | | | NEXT;
x /usr/include/glib-2.0/glib/gnode.h |
| |
268 | #define g_node_next_sibling(node) ((node) ? \ |
269 | ((GNode*) (node))->next : NULL) |
| |
|
| 4535 | | | } |
| 4536 | | | break; |
| 4537 | | | case TBL_SET: |
| 4538 | | | case TBL_SEQUENCE: |
| 4539 | | | pos.type |= TBL_SEQUENCE_done;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
247 | #define TBL_SEQUENCE_done 0x00080000 /* children have been processed */ |
| |
|
| 4540 | | | PUSHNODE(pos); |
| 4541 | | | CHILD;
x /usr/include/glib-2.0/glib/gnode.h |
| |
280 | #define g_node_first_child(node) ((node) ? \ |
281 | ((GNode*) (node))->children : NULL) |
| |
|
| 4542 | | | pushed++; |
| 4543 | | | if (asn1_verbose) g_message(" seq [push,child]");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4544 | | | break; |
| 4545 | | | case TBL_CHOICE: |
| 4546 | | | |
| 4547 | | | pos.type = (TBL_CHOICE_done | (pos.type & ~TBL_TYPEmask)); |
| 4548 | | | PUSHNODE(pos); |
| 4549 | | | |
| 4550 | | | pos.type = 0; |
| 4551 | | | if (asn1_verbose) |
| 4552 | | | g_message(" choice [push], %c%d, %s",
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4553 | | | tag_class[info->tclass], info->tag, getname(pos.node)); |
| 4554 | | | pos.node = makechoice(pos.node, class, tag); |
| 4555 | | | if (pos.node == NULL) { |
| 4556 | | | pos = POPSTATE; |
| 4557 | | | out->flags |= OUT_FLAG_noname; |
| 4558 | | | PDUerrcount++; |
| 4559 | | | } |
| 4560 | | | info = getinfo(pos.node); |
| 4561 | | | |
| 4562 | | | ret = getname(pos.node); |
| 4563 | | | if (asn1_verbose) |
| 4564 | | | g_message(" '%s' %c%d will be used",
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4565 | | | ret, tag_class[info->tclass], info->tag); |
| 4566 | | | break; |
| 4567 | | | case TBL_CHOICE_done: |
| 4568 | | | NEXT;
x /usr/include/glib-2.0/glib/gnode.h |
| |
268 | #define g_node_next_sibling(node) ((node) ? \ |
269 | ((GNode*) (node))->next : NULL) |
| |
|
| 4569 | | | break; |
| 4570 | | | case TBL_TYPEREF: |
| 4571 | | | pos = POPSTATE; |
| 4572 | | | NEXT;
x /usr/include/glib-2.0/glib/gnode.h |
| |
268 | #define g_node_next_sibling(node) ((node) ? \ |
269 | ((GNode*) (node))->next : NULL) |
| |
|
| 4573 | | | if (asn1_verbose) g_message(" typeref [pop,next]");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4574 | | | break; |
| 4575 | | | case TBL_ENUMERATED: |
| 4576 | | | case TBL_BITSTRING: |
| 4577 | | | |
| 4578 | | | NEXT;
x /usr/include/glib-2.0/glib/gnode.h |
| |
268 | #define g_node_next_sibling(node) ((node) ? \ |
269 | ((GNode*) (node))->next : NULL) |
| |
|
| 4579 | | | break; |
| 4580 | | | case TBL_CHOICE_immediate: |
| 4581 | | | if (asn1_verbose) g_message(" immediate choice [no next]");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4582 | | | |
| 4583 | | | break; |
| 4584 | | | default: |
| 4585 | | | NEXT;
x /usr/include/glib-2.0/glib/gnode.h |
| |
268 | #define g_node_next_sibling(node) ((node) ? \ |
269 | ((GNode*) (node))->next : NULL) |
| |
|
| 4586 | | | break; |
| 4587 | | | } |
| 4588 | | | } |
| 4589 | | | |
| 4590 | | | if (pos.node == NULL) { |
| 4591 | | | ret = "*no-name-2*"; |
| 4592 | | | if (asn1_verbose) g_message(" return '%s'", ret);
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4593 | | | out->name = ret; |
| 4594 | | | out->flags |= OUT_FLAG_noname; |
| 4595 | | | PDUerrcount++; |
| 4596 | | | return out; |
| 4597 | | | } |
| 4598 | | | ret = pos.name = getname(pos.node); |
| 4599 | | | pos.type = gettype(pos.node) | (pos.type & ~TBL_TYPEmask); |
| 4600 | | | info = getinfo(pos.node); |
| 4601 | | | |
| 4602 | | | |
| 4603 | | | if (asn1_verbose) g_message(" candidate %s '%s'%s%s, %c%d", TBLTYPE(pos.type), ret,
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4604 | | | (ISOPTIONAL)?", optional":empty, |
| 4605 | | | (ISIMPLICIT)?", implicit":empty, |
| 4606 | | | tag_class[info->tclass], info->tag ); |
| 4607 | | | |
| 4608 | | | if (ISOPTIONAL) { |
| 4609 | | | while(! MATCH) { |
| 4610 | | | if (asn1_verbose) |
| 4611 | | | g_message(" got %c%d, found %c%d", tag_class[class], tag,
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4612 | | | tag_class[info->tclass], info->tag); |
| 4613 | | | NEXT;
x /usr/include/glib-2.0/glib/gnode.h |
| |
268 | #define g_node_next_sibling(node) ((node) ? \ |
269 | ((GNode*) (node))->next : NULL) |
| |
|
| 4614 | | | if (pos.node == NULL) { |
| 4615 | | | ret = "------"; |
| 4616 | | | if (cons) { |
| 4617 | | | pos = save_pos; |
| 4618 | | | pos.type |= TBL_SEQUENCE_done;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
247 | #define TBL_SEQUENCE_done 0x00080000 /* children have been processed */ |
| |
|
| 4619 | | | PUSHNODE(pos); |
| 4620 | | | pos.type &= ~TBL_SEQUENCE_done;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
247 | #define TBL_SEQUENCE_done 0x00080000 /* children have been processed */ |
| |
|
| 4621 | | | cons_handled = 1; |
| 4622 | | | out->flags |= OUT_FLAG_dontshow; |
| 4623 | | | if (asn1_verbose) |
| 4624 | | | g_message(" end of optional list, constructed, expect value next time");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4625 | | | } else { |
| 4626 | | | PDUerrcount++; |
| 4627 | | | out->flags |= OUT_FLAG_noname; |
| 4628 | | | if (asn1_verbose) |
| 4629 | | | g_message(" *end of optional list...");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4630 | | | info = 0; |
| 4631 | | | } |
| 4632 | | | break; |
| 4633 | | | } |
| 4634 | | | info = getinfo(pos.node); |
| 4635 | | | if (asn1_verbose) g_message(" optional, %s", getname(pos.node));
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4636 | | | } |
| 4637 | | | if (pos.node && ! cons_handled) { |
| 4638 | | | ret = pos.name = getname(pos.node); |
| 4639 | | | pos.type = gettype(pos.node); |
| 4640 | | | } |
| 4641 | | | |
| 4642 | | | } |
| 4643 | | | |
| 4644 | | | if (pos.type == TBL_CHOICE) { |
| 4645 | | | pos2 = pos; |
| 4646 | | | if ( ! MATCH) { |
| 4647 | | | if (! pushed) { |
| 4648 | | | if (asn1_verbose) |
| 4649 | | | g_message(" already pushed, skip next push");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4650 | | | PUSHNODE(pos); |
| 4651 | | | typeflags &= ~TBL_CHOICE_made; |
| 4652 | | | } |
| 4653 | | | |
| 4654 | | | if (asn1_verbose && info) |
| 4655 | | | g_message(" immediate choice [push], %c%d, %s",
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4656 | | | tag_class[info->tclass], info->tag, getname(pos.node)); |
| 4657 | | | if (pos.node) { |
| 4658 | | | pos.node = makechoice(pos.node, class, tag); |
| 4659 | | | } |
| 4660 | | | if (pos.node == NULL) { |
| 4661 | | | pos = POPSTATE; |
| 4662 | | | PDUerrcount++; |
| 4663 | | | } |
| 4664 | | | info = getinfo(pos.node); |
| 4665 | | | pos.type = gettype(pos.node); |
| 4666 | | | out->type = (pos.type & TBL_TYPEmask); |
| 4667 | | | out->flags |= OUT_FLAG_type; |
| 4668 | | | |
| 4669 | | | g_sprintf(namestr, "%s!%s", ret, getname(pos.node)); |
| 4670 | | | ret = namestr; |
| 4671 | | | if (asn1_verbose) |
| 4672 | | | g_message(" %s:%s will be used", TBLTYPE(pos.type), ret);
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4673 | | | if (typeflags & TBL_REPEAT) {
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
244 | #define TBL_REPEAT 0x00010000 /* This type may be repeated, a flag in word TBLTypeId */ |
| |
|
| 4674 | | | pos2.type |= TBL_REPEAT | TBL_REPEAT_choice;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
244 | #define TBL_REPEAT 0x00010000 /* This type may be repeated, a flag in word TBLTypeId */ |
| |
|
| 4675 | | | PUSHNODE(pos2); |
| 4676 | | | pos.type |= TBL_SEQUENCE_choice;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
251 | #define TBL_SEQUENCE_choice 0x00800000 /* this sequence is a first of a repeating choice */ |
| |
|
| 4677 | | | PUSHNODE(pos); |
| 4678 | | | if (asn1_verbose) |
| 4679 | | | g_message(" return from immediate choice [%s] '%s'",
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4680 | | | TBLTYPE(pos.type), ret); |
| 4681 | | | |
| 4682 | | | out->data = pos.node; |
| 4683 | | | |
| 4684 | | | out->type = (pos.type & TBL_TYPEmask); |
| 4685 | | | out->name = ret; |
| 4686 | | | if (info) { |
| 4687 | | | out->typename = info->typename; |
| 4688 | | | out->fullname = info->fullname; |
| 4689 | | | out->value_id = info->value_id; |
| 4690 | | | out->type_id = info->type_id; |
| 4691 | | | } |
| 4692 | | | |
| 4693 | | | return out; |
| 4694 | | | } else { |
| 4695 | | | typeflags |= TBL_CHOICE_made; |
| 4696 | | | } |
| 4697 | | | } else { |
| 4698 | | | if (asn1_verbose) g_message(" matching choice '%s'", ret);
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4699 | | | } |
| 4700 | | | if ( ! cons ) { |
| 4701 | | | pos = pos2; |
| 4702 | | | } |
| 4703 | | | } |
| 4704 | | | if (asn1_verbose) { |
| 4705 | | | if (info) |
| 4706 | | | g_message(" using: %s '%s'%s%s, %c%d", TBLTYPE(pos.type), ret,
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4707 | | | (ISOPTIONAL)?", optional":empty, |
| 4708 | | | (ISIMPLICIT)?", implicit":empty, |
| 4709 | | | tag_class[info->tclass], info->tag ); |
| 4710 | | | else |
| 4711 | | | g_message(" using: unknown '%s'", ret);
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4712 | | | } |
| 4713 | | | |
| 4714 | | | |
| 4715 | | | if (pos.type == TBL_TYPEREF && info) { |
| 4716 | | | out->typename = info->typename; |
| 4717 | | | out->type_id = info->typenum; |
| 4718 | | | out->flags |= OUT_FLAG_typename; |
| 4719 | | | pos2 = pos; |
| 4720 | | | PUSHNODE(pos); |
| 4721 | | | if (asn1_verbose) g_message(" typeref [push]");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4722 | | | typeflags |= TBL_REFERENCE;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
249 | #define TBL_REFERENCE 0x00200000 /* This entry is result of a typeref */ |
| |
|
| 4723 | | | if (info->reference == 0) { |
| 4724 | | | |
| 4725 | | | pos.type = gettype(pos.node); |
| 4726 | | | info = getinfo(pos.node); |
| 4727 | | | tmp = "inknown tag"; |
| 4728 | | | if ((info->tclass == BER_CLASS_UNI) && (info->tag < 31)) { |
| 4729 | | | tmp = asn1_tag[info->tag]; |
| 4730 | | | pos.type = asn1_uni_type[info->tag]; |
| 4731 | | | } |
| 4732 | | | if (asn1_verbose && info) |
| 4733 | | | g_message(" indirect typeref to %s:%s, %s [%c%d]",
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4734 | | | TBLTYPE(pos.type), info->typename, tmp, |
| 4735 | | | tag_class[info->tclass], info->tag ); |
| 4736 | | | } else { |
| 4737 | | | out->fullname = info->fullname; |
| 4738 | | | donext = (ISANONYMOUS); |
| 4739 | | | pos.node = info->reference; |
| 4740 | | | pos.type = gettype(pos.node); |
| 4741 | | | info = getinfo(pos.node); |
| 4742 | | | if (asn1_verbose) |
| 4743 | | | g_message(" typeref %s %s", TBLTYPE(pos.type), getname(pos.node));
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4744 | | | |
| 4745 | | | if (donext) |
| 4746 | | | ret = getname(pos.node); |
| 4747 | | | |
| 4748 | | | |
| 4749 | | | |
| 4750 | | | out->type = (pos.type & TBL_TYPEmask); |
| 4751 | | | out->flags |= OUT_FLAG_type; |
| 4752 | | | |
| 4753 | | | |
| 4754 | | | |
| 4755 | | | out->data = pos.node; |
| 4756 | | | out->flags |= OUT_FLAG_data; |
| 4757 | | | if (asn1_verbose) |
| 4758 | | | g_message(" typeref set named number list node %p", pos.node);
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4759 | | | |
| 4760 | | | if ( ! cons) { |
| 4761 | | | pos = POPSTATE; |
| 4762 | | | pos.type = TBL_TYPEREF_nopop; |
| 4763 | | | if (asn1_verbose) g_message(" typeref pop");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4764 | | | } else if ((pos.type == TBL_ENUMERATED) || (pos.type == TBL_BITSTRING)){ |
| 4765 | | | |
| 4766 | | | pos = POPSTATE; |
| 4767 | | | pos.type = TBL_TYPEREF_nopop; |
| 4768 | | | if (asn1_verbose) g_message(" typeref [pop]");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4769 | | | } else { |
| 4770 | | | typeflags |= TBL_REFERENCE;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
249 | #define TBL_REFERENCE 0x00200000 /* This entry is result of a typeref */ |
| |
|
| 4771 | | | } |
| 4772 | | | } |
| 4773 | | | } |
| 4774 | | | |
| 4775 | | | if (cons && ! cons_handled) { |
| 4776 | | | switch(pos.type) { |
| 4777 | | | case TBL_BOOLEAN: |
| 4778 | | | case TBL_INTEGER: |
| 4779 | | | case TBL_OCTETSTRING: |
| 4780 | | | case TBL_NULL: |
| 4781 | | | case TBL_OID: |
| 4782 | | | case TBL_REAL: |
| 4783 | | | case TBL_ENUMERATED: |
| 4784 | | | case TBL_TYPEREF: |
| 4785 | | | typeflags |= TBL_CONSTRUCTED;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
252 | #define TBL_CONSTRUCTED 0x01000000 /* unexpectedly constructed entry */ |
| |
|
| 4786 | | | |
| 4787 | | | out->flags |= (OUT_FLAG_dontshow | OUT_FLAG_constructed); |
| 4788 | | | if (asn1_verbose) g_message(" dontshow and set constructed flag");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4789 | | | break; |
| 4790 | | | default: |
| 4791 | | | break; |
| 4792 | | | } |
| 4793 | | | } |
| 4794 | | | } |
| 4795 | | | |
| 4796 | | | if (ISANONYMOUS) { |
Event 14:
Skipping " if". - info evaluates to true.
- info->flags & 32 evaluates to false.
hide
|
|
| 4797 | | | if (asn1_verbose) g_message(" anonymous: dontshow");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4798 | | | if (asn1_debug) |
| 4799 | | | out->flags |= OUT_FLAG_dontshow; |
| 4800 | | | else |
| 4801 | | | out->name = empty; |
| 4802 | | | } |
| 4803 | | | |
| 4804 | | | if (out->name != empty) |
Event 16:
Taking true branch. out->name != empty evaluates to true.
hide
|
|
| 4805 | | | out->name = ret; |
| 4806 | | | |
| 4807 | | | if ( ! (out->flags & OUT_FLAG_data)) |
Event 17:
Taking true branch. out->flags & 2 evaluates to false.
hide
|
|
| 4808 | | | out->data = pos.node; |
| 4809 | | | |
| 4810 | | | pos.type |= typeflags; |
| 4811 | | | PUSHNODE(pos); |
| 4812 | | | |
| 4813 | | | if ( ! (out->flags & OUT_FLAG_type)) |
Event 18:
Taking true branch. out->flags & 1 evaluates to false.
hide
|
|
| 4814 | | | out->type = pos.type; |
| 4815 | | | |
| 4816 | | | out->type &= TBL_TYPEmask; |
| 4817 | | | |
| 4818 | | | if (ret == noname) { |
Event 19:
Skipping " if". ret == noname evaluates to false.
hide
|
|
| 4819 | | | PDUerrcount++; |
| 4820 | | | out->flags |= OUT_FLAG_noname; |
| 4821 | | | } |
| 4822 | | | |
| 4823 | | | if (info && ((out->flags & OUT_FLAG_typename) == 0)) { |
Null Test After Dereference
This code tests the nullness of info, which has already been dereferenced. - If info were null, there would have been a prior null pointer dereference at packet-asn1.c:4796, and potentially at other locations as well.
- Either this test is redundant, or the earlier dereference(s) should be guarded by a similar test.
The issue can occur if the highlighted code executes. See related event 15. Show: All events | Only primary events |
|
| 4824 | | | out->typename = info->typename; |
| 4825 | | | out->type_id = info->typenum; |
| 4826 | | | } |
| 4827 | | | |
| 4828 | | | if (info && (out->value_id == -1)) { |
| 4829 | | | out->value_id = info->value_id; |
| 4830 | | | out->type_id = info->type_id; |
| 4831 | | | } |
| 4832 | | | |
| 4833 | | | if ((out->fullname == 0) && info) |
| 4834 | | | out->fullname = info->fullname; |
| 4835 | | | |
| 4836 | | | if (typeflags & TBL_CONSTRUCTED)
x /home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c |
| |
252 | #define TBL_CONSTRUCTED 0x01000000 /* unexpectedly constructed entry */ |
| |
|
| 4837 | | | constructed_save = *out; |
| 4838 | | | |
| 4839 | | | if (asn1_verbose) |
| 4840 | | | g_message(" return [%s] '%s' vid=%d, tid=%d", TBLTYPE(out->type), out->name,
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 4841 | | | out->value_id, out->type_id); |
| 4842 | | | |
| 4843 | | | return out; |
| 4844 | | | } |
| |