Skip to content
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

fix: access wild pointer #304

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Conversation

18202781743
Copy link
Contributor

iconButton's ownership is caller, it will access wild pointer
if it's released in 1ms.

iconButton's ownership is caller, it will access wild pointer
if it's released in 1ms.
@18202781743 18202781743 requested a review from mhduiy January 22, 2025 06:23
@18202781743
Copy link
Contributor Author

#0 0x00007f0038830a0e in QWidget::testAttribute (attribute=Qt::WA_WState_Visible, this=0x5645e4ec9310)
at ../../include/QtWidgets/../../src/widgets/kernel/qwidget.h:883
#1 QWidget::isVisible (this=0x5645e4ec9310) at ../../include/QtWidgets/../../src/widgets/kernel/qwidget.h:845
#2 QWidgetPrivate::update (this=, r=...) at kernel/qwidget.cpp:10879
#3 QWidget::update (this=this@entry=0x5645e4a9fff0, rect=...) at kernel/qwidget.cpp:10860
#4 0x00007f0038830b8e in QWidget::update (this=this@entry=0x5645e4a9fff0) at kernel/qwidget.cpp:10842
#5 0x00007f00388f7f53 in QAbstractButton::setIcon (this=0x5645e4a9fff0, icon=...) at widgets/qabstractbutton.cpp:586
#6 0x00007f0030363d4c in operator() (_closure=0x5645e499bd50) at ./dss-network-plugin/network_module.cpp:445
#7 QtPrivate::FunctorCall<QtPrivate::IndexesList<>, QtPrivate::List<>, void, dss::module::NetworkPlugin::itemWidget() const::<lambda()> >::call (arg=, f=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:146
#8 QtPrivate::Functor<dss::module::NetworkPlugin::itemWidget() const::<lambda()>, 0>::call<QtPrivate::List<>, void> (arg=,
f=...) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:256
#9 QtPrivate::QFunctorSlotObject<dss::module::NetworkPlugin::itemWidget() const::<lambda()>, 0, QtPrivate::List<>, void>::impl(int, QtPrivate::QSlotObjectBase *, QObject *, void **, bool *) (which=, this
=0x5645e499bd40, r=, a=,
ret=) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobjectdefs_impl.h:443
#10 0x00007f003904d5b6 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f003903d785 in QObject::event(QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f0038803222 in QApplicationPrivate::notify_helper (this=, receiver=0x5645e499c6c0, e=0x7fff5ac5c700)
at kernel/qapplication.cpp:3645
#13 0x00007f0039010978 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f0039069d41 in QTimerInfoList::activateTimers() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007f003906a62c in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007f0037795e0f in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007f0037797e97 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007f00377984b0 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007f003906a9ba in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) ()
from /lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f003900f30b in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007f003901776a in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00005645ddc2094e in main ()
(gdb) p data
$1 = (QWidgetData *) 0x0

@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 18202781743, mhduiy

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@18202781743 18202781743 merged commit a7e4271 into linuxdeepin:master Jan 23, 2025
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants