OpenSTA/liberty
James Molloy 7fbe386d35
[liberty] Fix use-before-free bug (#170)
Before this change, findTableTemplate captured `name` always. This caused a segfault
when LibertyReader::beginTable calls it with `template_name`:

  const char *template_name = group->firstName();
  if (library_ && template_name) {
    tbl_template_ = library_->findTableTemplate(template_name, type);

This pointer is owned by the group and is freed when we hit sta::libertyGroupEnd.

Ensure that findTableTemplate does not capture `name` by using findKey.

Co-authored-by: jmolloy <jmolloy@google.com>
2025-01-11 09:03:53 -08:00
..
EquivCells.cc Remove the footprint check from equivCells 2024-09-12 22:07:58 +00:00
FuncExpr.cc ccs ceff delay calc 2024-02-27 10:00:48 -07:00
InternalPower.cc OutputWaveforms init vdd 2024-02-11 11:45:40 -07:00
LeakagePower.cc update copyright 2024-01-11 16:34:49 -08:00
Liberty.cc [liberty] Fix use-before-free bug (#170) 2025-01-11 09:03:53 -08:00
Liberty.i issue 149, 150, cmdNetwork->Sta::ensureLinked check libs 2024-12-19 16:03:39 -07:00
Liberty.tcl mv liberty swig files to /liberty 2024-07-24 09:04:08 -07:00
LibertyBuilder.cc liberty min_pulse_width missing related_pin 2024-08-09 15:40:21 -07:00
LibertyBuilder.hh liberty min_pulse_width timing group support 2024-04-17 11:49:19 -07:00
LibertyExpr.cc update copyright 2024-01-11 16:34:49 -08:00
LibertyExpr.hh update copyright 2024-01-11 16:34:49 -08:00
LibertyExprLex.ll update copyright 2024-01-11 16:34:49 -08:00
LibertyExprParse.yy update copyright 2024-01-11 16:34:49 -08:00
LibertyExprPvt.hh update copyright 2024-01-11 16:34:49 -08:00
LibertyExt.cc update copyright 2024-01-11 16:34:49 -08:00
LibertyLex.ll issue114 liberty colons round 3 2024-11-05 08:38:59 -08:00
LibertyParse.yy issue114 liberty colons round 3 2024-11-05 08:38:59 -08:00
LibertyParser.cc issue114 liberty colons round 3 2024-11-05 08:38:59 -08:00
LibertyParser.hh issue114 liberty colons round 3 2024-11-05 08:38:59 -08:00
LibertyReader.cc Fix for non-standard latches (#151) 2024-12-19 15:02:03 -08:00
LibertyReader.hh update copyright 2024-01-11 16:34:49 -08:00
LibertyReaderPvt.hh Make `is_memory` property more sensitive for cells and libcells by also matching on `memory` groups (#129) 2024-11-20 15:10:12 -08:00
LibertyWriter.cc timing models rm clk tree delay clk->output w/ideal clk conttext 2024-12-07 16:35:14 -08:00
LinearModel.cc update copyright 2024-01-11 16:34:49 -08:00
Sequential.cc liberty statetables 2024-08-04 17:10:04 -07:00
TableModel.cc leak 2024-07-31 16:36:24 -07:00
TimingArc.cc rel 2.6.0 2024-07-24 09:04:08 -07:00
TimingModel.cc update copyright 2024-01-11 16:34:49 -08:00
TimingRole.cc liberty min_pulse_width timing group support 2024-04-17 11:49:19 -07:00
Units.cc Units use std::string 2024-11-13 19:09:27 -08:00
Wireload.cc update copyright 2024-01-11 16:34:49 -08:00