Database mapping for crash dumps.
| 561 | |
| 562 | |
| 563 | class CrashDTO(BaseDTO): |
| 564 | """ |
| 565 | Database mapping for crash dumps. |
| 566 | """ |
| 567 | |
| 568 | # Table name. |
| 569 | __tablename__ = "crashes" |
| 570 | |
| 571 | # Primary key. |
| 572 | id = Column(Integer, Sequence(__tablename__ + "_seq"), primary_key=True, autoincrement=True) |
| 573 | |
| 574 | # Timestamp. |
| 575 | timestamp = Column(DateTime, nullable=False, index=True) |
| 576 | |
| 577 | # Exploitability test. |
| 578 | exploitable = Column(Integer, nullable=False) |
| 579 | exploitability_rule = Column(String(32), nullable=False) |
| 580 | exploitability_rating = Column(String(32), nullable=False) |
| 581 | exploitability_desc = Column(String, nullable=False) |
| 582 | |
| 583 | # Platform description. |
| 584 | os = Column(String(32), nullable=False) |
| 585 | arch = Column(String(16), nullable=False) |
| 586 | bits = Column(Integer, nullable=False) # Integer(4) is deprecated :( |
| 587 | |
| 588 | # Event description. |
| 589 | event = Column(String, nullable=False) |
| 590 | pid = Column(Integer, nullable=False) |
| 591 | tid = Column(Integer, nullable=False) |
| 592 | pc = Column(BigInteger, nullable=False) |
| 593 | sp = Column(BigInteger, nullable=False) |
| 594 | fp = Column(BigInteger, nullable=False) |
| 595 | pc_label = Column(String, nullable=False) |
| 596 | |
| 597 | # Exception description. |
| 598 | exception = Column(String(64)) |
| 599 | exception_text = Column(String(64)) |
| 600 | exception_address = Column(BigInteger) |
| 601 | exception_label = Column(String) |
| 602 | first_chance = Column(Boolean) |
| 603 | fault_type = Column(Integer) |
| 604 | fault_address = Column(BigInteger) |
| 605 | fault_label = Column(String) |
| 606 | fault_disasm = Column(String) |
| 607 | stack_trace = Column(String) |
| 608 | |
| 609 | # Environment description. |
| 610 | command_line = Column(String) |
| 611 | environment = Column(String) |
| 612 | |
| 613 | # Debug strings. |
| 614 | debug_string = Column(String) |
| 615 | |
| 616 | # Notes. |
| 617 | notes = Column(String) |
| 618 | |
| 619 | # Heuristic signature. |
| 620 | signature = Column(String, nullable=False) |
no outgoing calls
no test coverage detected