Commit 62c2f56
committed
Fixed coverity 1620066.
_____________________________________________________________________________________________
*** CID 1620066: Null pointer dereferences (FORWARD_NULL)
/src/rsz/src/CloneMove.cc: 276 in rsz::CloneMove::doMove(const sta::Path *, int, float, sta::PathExpanded *, float)()
270 sta_->disconnectPin(load_pin);
271 // hierarchy fix: if load and clone in different modules
272 // do the cross module wiring.
273 if (load_parent_inst != parent) {
274 std::string unique_connection_name
275 = db_network_->getBlockOf(load_pin)->makeNewNetName();
>>> CID 1620066: Null pointer dereferences (FORWARD_NULL)
>>> Passing null pointer "clone_output_iterm" to "hierarchicalConnect", which dereferences it.
276 db_network_->hierarchicalConnect(
277 clone_output_iterm, load_iterm, unique_connection_name.c_str());
278 } else {
279 sta_->connectPin(load, load_port, out_net);
280 }
281 }
Signed-off-by: Jaehyun Kim <[email protected]>1 parent d957ce8 commit 62c2f56
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
251 | 261 | | |
252 | 262 | | |
253 | 263 | | |
| |||
0 commit comments