Projects
Eulaceura:Factory
pin-server
_service:obs_scm:0031-Pin-Server-Added-null-poi...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:0031-Pin-Server-Added-null-pointer-check-to-avoid-potenti.patch of Package pin-server
From 53b9b9ea326df8fec717260eda09e5d73d7a30cd Mon Sep 17 00:00:00 2001 From: qiujiacai <qiujiacai_yewu@cmss.chinamobile.com> Date: Wed, 20 Sep 2023 18:28:49 +0800 Subject: [PATCH 4/7] [Pin-Server] Added null pointer check to avoid potential null pointer problems --- user/ArrayWidenPass.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/user/ArrayWidenPass.cpp b/user/ArrayWidenPass.cpp index 475f784..cafb177 100644 --- a/user/ArrayWidenPass.cpp +++ b/user/ArrayWidenPass.cpp @@ -702,6 +702,8 @@ static bool checkBodyMemRef(Value memRef) static bool checkBodyPointerPlus(Operation *op, Value &tmpIndex) { auto assignOp = dyn_cast<AssignOp>(op); + if(!assignOp) + return false; Value rhs1 = assignOp.GetRHS1(); Value rhs2 = assignOp.GetRHS2(); -- 2.33.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2