forked from wireshark/wireshark
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
谁能传几个实例数据包国密算法包数据包 #3
Comments
给个带证书的数据包呗?好像国密标准的证书编号不识别!!! |
blaisewang
pushed a commit
that referenced
this issue
May 10, 2021
It's possible to create a FrameInformation object that's not backed by any frame data. In this case, fi_ is NULL and loadFrameTree() does not run a dissection. However, we run epan_dissect_cleanup() unconditionally in the destructor, even if edt_ is uninitialized. This causes a crash when wireshark is closed. Convert edt_ into a pointer. Run the cleanup only if we ran the dissection before. The issue can be reproduced by applying a display filter that makes the list of the packets smaller than the packet list window. Right click onto an "empty" part of the packet list and select "Mark/Unmark Frame". Exiting wireshark at this point causes a segmentation fault Thread 1 "wireshark" received signal SIGSEGV, Segmentation fault. tvb_free_chain (tvb=0xf000e000d000c) at ../epan/tvbuff.c:124 124 tvb_free_internal(tvb); (gdb) bt #0 tvb_free_chain (tvb=0xf000e000d000c) at ../epan/tvbuff.c:124 #1 0x00007ffff430491e in epan_dissect_cleanup (edt=0x555558075b48) at ../epan/epan.c:648 #2 0x00005555558fa5a6 in FrameInformation::~FrameInformation (this=0x555558075b20, __in_chrg=<optimized out>) at ../ui/qt/utils/frame_information.cpp:57 #3 0x00005555558fa5e9 in FrameInformation::~FrameInformation (this=0x555558075b20, __in_chrg=<optimized out>) at ../ui/qt/utils/frame_information.cpp:55 ... #12 0x00005555559a74f7 in PacketList::~PacketList (this=0x55555602e930, __in_chrg=<optimized out>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:1130 Change-Id: I347dd4901b4e08c37008ff25ac1f20a67555d9fd Reviewed-on: https://code.wireshark.org/review/36825 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Petri-Dish: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
blaisewang
pushed a commit
that referenced
this issue
May 10, 2021
In the constructor, we allocate a delegate for the name column and assign it by calling QAbstractItemView::setItemDelegateForColumn(). This does not pass ownership of the delegate to QAbstractItemView, it's still up to us to free the delegate. ASAN warns about this Indirect leak of 48 byte(s) in 1 object(s) allocated from: ... #1 ... in ProfileTreeView::ProfileTreeView(QWidget*) ui/qt/widgets/profile_tree_view.cpp:46:17 #2 ... in Ui_ProfileDialog::setupUi(QDialog*) ui/qt/qtui_autogen/include/ui_profile_dialog.h:67:31 #3 ... in ProfileDialog::ProfileDialog(QWidget*) ui/qt/profile_dialog.cpp:59:13 #4 ... in MainWindow::on_actionEditConfigurationProfiles_triggered() ui/qt/main_window_slots.cpp:2239:36 Add a destructor for ProfileTreeView and free the delegate there. Change-Id: I2a76abb7ec174c91ad15bfac91f2b47bea29f511 Reviewed-on: https://code.wireshark.org/review/36934 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Petri-Dish: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
谁给发几个实例数据包做个测试.pcapng
The text was updated successfully, but these errors were encountered: