Web GUI: confirmed bugs from a code audit (tracking)

オープン
#12,524 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@jorge-ferreira-pii がすでに取り組んでいます。

2026年12月1日 から。

  • #12541 @jorge-ferreira-pii による — オープン
  • #12550 @jorge-ferreira-pii による — オープン
  • #12580 @jorge-ferreira-pii による — オープン

評価

この issue はまだ評価されていません。

説明

enhancement web
Description

Status as of 2026-12-04. ✅ fixed on master: 14 (#12024), 27 (#12041), 33 (#12355), 34 (#12517). 🟡 partly fixed: 130 (#12024). 🔄 open PRs: #12183 (1, 9, 85, 98, 118), #12541 (28, 123, 124, 125, and the rest of 1 and 9), #12547 (97), #12550 (115, 143, and the bbox check of 97), #12335 (50); #12504 overlaps 20–23, 121 and 122.

"See #11167 F-xx" and "See #11908 #n" point to the same bug in the security and Qt-parity tracking issues.

Server (15)
# Impact Finding Location Proposed fix
1 crash The WebSocket stream has no strand. The socket is accepted on the bare io_context; reads start on the previous handler's thread and writes on the session's strand_. With all cores in use by default, a read and a write can touch the stream at the same time (corrupt frames or a crash). See #11167 F-18. web.cpp:1742, 1185, 1334 Accept on net::make_strand(ioc_) and start every stream operation there.
6 hang web_server typed in the browser console always calls web_server_wait_cmd, which waits for stop while holding the Tcl mutex. No other command can run, not even the one that would stop it. web.tcl:62, web_serve.cpp:735 Don't wait when the server was already running.
9 DoS When async_accept fails (EMFILE), on_accept accepts again at once: 100% CPU and a flooded log until descriptors free up. web.cpp:1755–1773 On error, wait on a steady_timer before accepting again.
28 race stop() removes the logger sink before joining the io threads, which may still log; Logger::removeSink is not thread-safe. web_serve.cpp:872 Remove the sink only after the join (it is removed twice today; drop the first).
81 cleanup The launcher's error file uses a fixed /tmp/openroad-XXXXXX and ignores $TMPDIR. The listening and accepted sockets are already close-on-exec (#12227, see #11167 F-10). web_serve.cpp:664 Honor $TMPDIR.
84 wrong result saveReport() doesn't check out.close(). On a full disk, the HTML is truncated, and the log still says "Saved timing report". web.cpp:2244 Check the stream after close() and report an error.
104 memory gpl::GraphicsImpl keeps WebChart* in static pointers, but WebServer::stop() resets viewer_hook_ and frees the charts. The next global_placement calls virtuals on freed memory. web_viewer_hook.cpp:381–390, web_serve.cpp:418–423, 907 Tie the WebChart lifetime to WebServer/Gui, or clear the cached pointers when the hook is destroyed.
105 crash ODB callbacks in WebSocketSession: addOwner() in the constructor can reach shared_from_this() before make_shared returns (bad_weak_ptr) or write before async_accept; the destructor skips removeOwner() when chip or block is null; the block owner is never attached if the block is created after the chip. See #11167 F-31. web.cpp:740–749, 978–989, 1160–1169 Observe ODB centrally and dispatch through SessionRegistry after on_accept; always removeOwner() on teardown.
106 memory Unlike stop(), ~WebServer() releases viewer_hook_ without clearing pause_hooks_, the renderer hooks, designChangedCallback, headless_viewer_ and chartFactory, which hold WebServer*/TclEvaluator*. web.cpp:1828–1874, web_serve.cpp:315–351 Clear all global hooks in ~WebServer() before releasing the hook.
116 security No Host header check: DNS rebinding passes the origin check because Origin is compared with the client-supplied Host. isCspHostSource() rejects [::1]: port, so connect-src misses IPv6 loopback. Part of #11167 F-14. web.cpp:202, 1583–1602, request_handler.cpp:375–457 Restrict Host to loopback or the -bind address; accept bracketed IPv6 literals.
117 security Log and ANSI/OSC injection: req.raw_type and error text reach WEB-0043 with no length limit or control-character filtering (unlike Origin). See #11167 F-23. web.cpp:1274–1308 Reuse the existing sanitize-and-truncate helper.
118 DoS DetectSession and HttpSession set no timeouts before authentication (Slowloris): connections can be held open until RLIMIT_NOFILE. See #11167 F-09. web.cpp:1414–1451, 1535–1566 expires_after(30s) on read and write; expires_never() on handoff to the WebSocket session.
123 race stop() closes the tcp::acceptor on the calling thread while workers still run on_accept/async_accept. web_serve.cpp:877–891 Join the io threads first (as ~WebServer() does), or post close() to the acceptor's strand.
124 hang notifyClientWaiters() notifies client_cv_ without holding mutex_: a lost wakeup that stalls pause() and the destructor for 30 s. web_viewer_hook.cpp:66–83 Lock mutex_ before notify_all().
125 hang On a write error, do_write() drops only the front frame and abandons the rest of the queue and its on_complete callbacks, so broadcastAndWait() times out in stop. web.cpp:1326–1356 Mark the session failed, drain the queue calling every on_complete, and complete later writes at once.
Image rendering, GIF and /tmp (3)
# Impact Finding Location Proposed fix
97 security renderImageBuffer/renderOverlayPng don't clamp tile ranges. An -area or /download/image?bbox= outside the bounds on both axes multiplies two negative spans into a positive size and overflows the heap in compositeTile; on one axis it tries to allocate ~18 EiB. z isn't clamped (overflow in pow(2, z) and 1 << z), maxDXDY() <= 0 gives log2(0), and parseBbox accepts trailing garbage. See #11167 F-15/F-17. tile_generator.cpp:6704–6733, 912–932, 7124–7176, web.cpp:161–189 Clamp ranges and z to [0, kMaxTileZoom], size buffers in size_t, return a background image when the crop misses the bounds, reject extra bbox fields.
115 security With set_debug_level WEB tile_generator 1, the client's layer goes unsanitized into /tmp/tile_<layer>_….png: / and .. are accepted, $TMPDIR is ignored, no O_NOFOLLOW/O_EXCL. See #11167 F-22. tile_generator.cpp:3732–3737, request_handler.cpp:6204 Restrict layer to [A-Za-z0-9._-] and write to a private mkdtemp directory under $TMPDIR.
143 wrong result add_label -color orange (also purple, indigo) is parsed as hex and comes out near-black; std::tolower(char) is UB on UTF-8. Gui::saveImage merges an empty block's (0,0,0,0) box, divides by a zero DBU-per-micron, and skips restoreDisplayControls() on an exception. gifWriter.cpp ignores I/O errors. See #11908 #42. web.cpp:2390–2431, renderer.cpp:284, guiDispatch.cpp:781–855, gifWriter.cpp:91–95 Delegate to Painter::stringToColor(), cast to unsigned char, guard empty boxes and zero DBU, restore display controls with RAII, check ferror.
Search and caches (9)
# Impact Finding Location Proposed fix
2 hang Deadlock on load with few cores. The Search pool has hardware_concurrency() threads; eagerInit queues 6 tasks, and updateShapes/updateFills/updateObstructions queue subtasks and wait for them inside the pool. With 3 threads or fewer, the design never finishes loading. See #11167 F-36. search.h:414, search.cpp:460, 577, 648, 767 Enforce a minimum pool size, or don't wait inside the pool.
26 race top_chip_ is written outside the lock. Low impact: it only changes when a design loads. search.cpp:246 Move the assignment into the locked block.
69 memory chiplets() returns a reference and releases the lock. After a command moves a chiplet, the next request reassigns chiplets_cache_ while other tile threads still iterate the old vector. tile_generator.cpp:1938 Return shared_ptr<const std::vector<ChipletNode>> by value.
100 memory getLayerColorMap() returns a reference after unlocking, while a concurrent eagerInit() (second tab, save_image -web, saveReport, gifAddFrame) clears layer_colors_by_tech_. Also: pin_label_margin_dbu_ is non-atomic and overflows int32 on large dies, and nested eagerInit() calls break suppress_design_changed_. tile_generator.cpp:1756–1799, 2004–2024, 2752–2772, web.cpp:1140–1147 Return a shared_ptr snapshot; an atomic margin computed in int64_t; a nesting counter; avoid the needless clear().
101 memory Search::getData() returns BlockData& after unlocking; a concurrent setTopChip()/clear() destroys mutexes that are held and R-trees in use. if (top_chip_ != chip) also skips the reset when read_db reuses the chip's address or the block is created after the chip. See #11167 F-32. search.cpp:206–249, 305–314, 482–506 Store shared_ptr<BlockData> and return it by value; reset unconditionally from eagerInit(); reattach addOwner(block) when missing.
107 crash A dbBTerm with no net is indexed with a null getNet(); isNetVisible(), isNetSelectable(), _pins, renderTileBuffer and selectAt dereference it. Part of #11167 F-38. tile_generator.cpp:1411–1455, 3362–3375, 5455, search.cpp:548 Handle a null net in all of them (or use term->getSigType() in _pins).
126 race Lost invalidation: search*() checks *_init outside the shared lock and doesn't check again inside; a clear*() during update*() is lost when update*() sets *_init = true; the ...Before/Destroy callbacks rebuild before ODB applies the change. Part of #11167 F-32. search.cpp:74–94, 291–303, 508–822, 1255–1264 Compare revision() before and after each update*(); check *_init again under the lock.
137 wrong result searchNearestEdge() ignores search_radius (the ruler snaps across space to the die edge), vis.fills and isSiteVisible(), and passes sta = nullptr. web::Search lacks about 10 ODB callbacks the Qt version has (BPin boxes, wires, BTerm connect, instance rename, access points), so the index goes stale even in 2D designs. search.cpp:69–205, 1449–1604, search.h:328–373 Require dist <= search_radius, honor the visibility flags, pass sta_; add the missing callbacks.
138 wrong result After any ODB edit or a reconnect, the _modules overlay of a flat design turns one solid color: instGroups() returns null and the fallback inst->getModule()->getId() (1 for top) collides with synthetic group 1. tile_generator.cpp:5280–5318, search.cpp:327–336, hierarchy-browser.js:252–255 Rebuild inst_groups on demand, or request module_hierarchy again in designChanged()/resendColors().
Heat maps (9)
# Impact Finding Location Proposed fix
5 race updateMapColors clears color_lower_bounds_ without ensure_mutex_ while tile threads read it, and getVisibleMap reads map_ after releasing the lock. Changing options mid-render gives wrong colors or reads freed memory. See #11167 F-30. heatMapCore.cpp:826, 750–775 A shared_mutex (shared in tiles, exclusive on changes) or an immutable shared_ptr snapshot.
7 memory loadChipletHeatMap registers a factory holding a dbChip* in the global registry, which outlives the design; after read_db it uses a freed chip. See #11167 F-33. web.cpp:2603–2619 Store the chiplet name and look it up when the factory runs.
14 wrong result ✅ Fixed in #12024. Grid size changes never apply: setSettings writes grid_x_size_ and then calls setGridSizes(grid_x_size_, …), which compares the value with itself, so the map is not rebuilt. The web changes every option this way (request_handler.cpp:7100). See #11167 F-26. heatMapCore.cpp:417, 445 Read the settings into locals before calling the setters.
18 wrong result Log scale with a maximum ≤ 0 (empty or all-zero map) gives NaN color bounds; legend and tiles are wrong. Same code as Qt. heatMapCore.cpp:832–840 Fall back to the linear scale.
24 race The power heat map's populateMap calls sta_->power() in parallel with any command that changes timing. heatMapCore.cpp:1222 Serialize populateMap with the STA lock.
113 crash Division by zero in generateHeatMapTile with empty bounds (infinite scale, NaN cast to int); ScopedDbuFormat::parseValue accepts nan/inf/1e20 as valid (UB in lround); handleSetHeatMap and Gui::setHeatMapSetting cast arbitrary doubles to int; GifEncoder::addFrame doesn't check the frame size against begin() (latent heap overflow in gif.h). See #11167 F-26 and F-34. tile_generator.cpp:6547–6615, request_handler.cpp:186–215, 7094, web_gif.cpp:47–81 Guard empty bounds, require std::isfinite and int range, validate GIF dimensions and delay.
129 wrong result DisplayMin/DisplayMax are sent in real units but written back as percentages, so a value in pins or µW is taken as %. See #11908 #6. request_handler.cpp:1961–1962, 7080–7101, heatMapCore.cpp:415–416 Convert with convertValueToPercent() in handleSetHeatMap.
130 wrong result 🟡 Partly fixed in #12024: an option change now rebuilds the map; the selection and hierarchy parts remain. Seven custom options (Taps, Filler, IO, Scene, Internal, Leakage, Switching) never rebuild the map (item 14 only covers the grid). "Only use selected instances" does nothing in web mode because Gui::get()->selection() is always empty. Selection filtering runs before descending into hierarchical instances. heatMapCore.cpp:424–461, heatMapPlacementDensity.cpp:26–40, guiDispatch.cpp:277–284 Call destroyMap() on any option change; pass the session's selection to the data source; descend before filtering.
131 wrong result The log ramp is inverted for 0 < max ≤ 1 and NaN for min < 0 < max; addToMap marks zero-area neighbors as valued (phantom zeros) and computes 0/0; determineMinMax includes empty bins; GlobalRouting divides a grid already in µm by the DBU size and dereferences a null chip_; handleSetActiveHeatMap drops the current map before validating the new one. Part of #11167 F-26. heatMapCore.cpp:580–624, 831–853, 951–1102, request_handler.cpp:7023–7047 Normalize the log ramp, skip zero areas, filter on has_value, fix the unit, guard chip_, reorder validation, onShow and syncHeatMapsLocked.
STA locks and renderers (10)

tcl_eval_->mutex is also the STA lock. Handlers that don't run inline go to the IO threads (one per core by default) and, without the lock, run in parallel with a Tcl command that may be changing the design or timing.

# Impact Finding Location Proposed fix
20 race handleHover calls sel.highlight(), which enters the ODB and STA descriptors, without the lock. Moving the mouse during repair_timing is enough. Part of #11167 F-21. request_handler.cpp:3843 Take tcl_eval_->mutex.
21 race overlay_tile rebuilds the highlights holding only selection_mutex, against the contract at line 1664, which requires the STA lock. Part of #11167 F-21. request_handler.cpp:6503–6516 Take the lock in the rebuild branch only.
22 memory The timing cone handler calls findInst before taking the lock and uses node.inst after releasing it; a command can delete the instance in between. Part of #11167 F-21. request_handler.cpp:5682–5760 Hold the lock for the whole handler.
23 race The DRC handlers change marker visibility and selection in ODB without the mutex, while a command such as detailed_route may be creating or deleting categories. Part of #11167 F-21. request_handler.cpp:7639 Take tcl_eval_->mutex.
25 race renderer_controls and set_renderer_control run inline and walk the renderer list while a command registers or removes renderers. renderer_mutex doesn't help, because registerRenderer doesn't take it. Part of #11167 F-28. web.cpp:611, 898–935 Follow the rule drawing already follows: don't read the list while a command runs (web_serve.cpp:487).
112 memory setRendererPaintingEnabled(r, false) removes r from renderers_ but keeps it in the backend; a later unregisterRenderer(r) returns early and leaves a dangling Renderer*. registerHeatMap registers the renderer before inserting it into heat_map_renderers_. Part of #11167 F-28. guiDispatch.cpp:82–122, 1140–1141 Track registered and painting-enabled renderers separately; fix the order.
120 memory Any request with debug_live: true (also through vis in /download/image) skips renderer_mutex and calls virtuals on Gui::renderers() while commands register or destroy them. See #11167 F-17/F-28. web_serve.cpp:487–522, request_handler.cpp:6644 Guard renderer lifetime with a shared_mutex; reject debug_live in /download/image.
121 memory Ten SelectHandler handlers (select, context_action, inspect, inspect_back, selection cycling, select_layer, fanout and net-length bins, find, schematic_inspect) call consumeStaleSelection() or look up ODB objects and selectables before taking the lock. Part of #11167 F-21. request_handler.cpp:2273–2296, 2589–2855, 3728–4113, 5305–5324 Take tcl_eval_->mutex first in all ten.
122 race Ten more handlers use ODB and STA with no lock at all: schematic cone, path and full, 3D data, snap, focus nets, route guides, clock tree highlight, module and group hierarchy, image download, and heat map onShow/onHide (which change the block's callback list). Part of #11167 F-21. request_handler.cpp:3887–3921, 4239–4309, 4883–5294, 5970–7111, web.cpp:255 Give TileHandler and handleImageDownload access to tcl_eval_ and serialize under its mutex.
140 wrong result RendererControls::seeded_ never drops a pointer on unregister: a new renderer at a reused address is never seeded, and its default-off controls come up on. ScriptView::checkRendererControl walks the renderers unlocked. Part of #11167 F-28. renderer_controls.cpp:31–35, script_view.cpp:227–237 Erase on unregister (or seed in registerRenderer()); take the lock.
Descriptors (13)
# Impact Finding Location Proposed fix
4 memory The four BufferTree getActions() lambdas capture &bnet, a local variable; they run on a click, after it is gone. See #11167 F-24 and #11908 #8. bufferTreeDescriptor.cpp:240, 247, 259, 280 Capture by value.
10 crash makeSelected(nullptr) returns a Selected that tests true. "Tech Via Generate Rule" shows up on vias without a rule, and opening it works on a null pointer. See #11167 F-25. dbDescriptors.cpp:283, 2551 Return Selected() for null pointers.
16 wrong result Slew Limit unit is S (siemens) instead of s. staDescriptors.cpp:454 "s".
17 wrong result gui::select with an unknown attribute returns before WEB-0092, which is unreachable: nothing is selected, and nothing says why. guiDispatch.cpp:1095 Validate the attribute before returning.
54 parity "Misc/Module view" is bound to nullptr, so the checkbox does nothing, although TV::module_view exists. display_control_tree.cpp:113 Bind it to &TV::module_view and check that drawing honors it.
96 memory Stack out-of-bounds on every LibertyCell inspection: std::array<SelectionSet, 8>, but OpenSTA has 9 port directions. The loop reads ports[8], and a port with direction unknown writes it. well is skipped. staDescriptors.cpp:303–328 Size 9 (or a map by PortDirection*), check the index, include well.
103 memory ClockDescriptor::getClockPins() reads clkNetwork()->pins() without ensureClkNetwork(): after pins are deleted, it returns freed Pin*; before the first timing update it returns nothing. staDescriptors.cpp:823–830 Use sta_->pins(clock, sta_->cmdMode()).
108 crash Null dereferences and a dangling capture across descriptors: null staToDb() in the LibertyCell and StaInstance highlights, null findPin() in properties, null getGCellGrid(), Selected::operator</== on two empty Selected, a by-value any_cast (bad_any_cast), 5 STA and 4 ODB wrappers that accept null, a null demangled name passed to the logger, and [this] captured by Selected::getActions() "Zoom to". Part of #11167 F-27. staDescriptors.cpp:210–747, dbDescriptors.cpp:1485–1495, openroad/web/include/web/core.h:629–642, descriptor_registry.cpp:92–212 Add null guards, use the pointer form of any_cast, capture a copy of *this.
111 memory DbTermAccessPointDescriptor::lessThan is not a strict weak order when ITerm and BTerm access points mix (a cycle in std::set<Selected>) and compares raw IDs across blocks. convertUnits(0.0) casts log10(0) = -inf to int and shows 0 aW; values ≥ 1e12 lose the SI prefix. dbDescriptors.cpp:115–174, 3303–3317 A total lexicographic order; handle zero, non-finite, negative and large values.
132 wrong result STA descriptors: Liberty port direction shows <unknown> (Property::toString() doesn't handle string_view); duty cycle is multiplied by 100 (5000%); isConstrained(inst) is used instead of the pin; level-shifter data is labeled "Is Level Shifter Enable"; ClockDescriptor::visitAllObjects() is empty, so gui::select -type Clock finds nothing. staDescriptors.cpp:427, 442, 663–665, 859, 937–940 Handle string_view, drop * 100, test the pin, fix the label, iterate the clocks.
133 wrong result ODB descriptors: lessThan ignores sink and xform; the rename and swap-master editors ignore the bool result and report success when ODB refuses; DBU values are formatted with SI prefixes (2 k); wire length is truncated to int32; dbMPin* has no descriptor (WEB-0085); multi-cut vias overwrite each other; cut layers show Ω/sq; the edge-type highlight ignores orientation; unplaced objects are drawn and boxed at (0, 0); a null BTerm is inserted when the driver is a dbModITerm. dbDescriptors.cpp (12 places, 193–5980) Fix each descriptor: real bool results, convert_dbu, int64_t, getTransform(), isPlaced().
134 UI ShapeCollector ignores drawX, drawCircle,, and drawPolygon(vector), so access points and point-sized or small DRC markers get no highlight. See #11908 #40. shape_collector.h:113–115, dbDescriptors.cpp:3248, 5088–5099 Draw drawX as two lines, polygons through odb::Polygon, approximate circles.
135 wrong result BufferTreeDescriptor::getBBox returns true for an inverted box (overflow in dx()); the "Route Guides" and "Tracks" buttons do nothing in web mode (#11908 #8); visitAllObjects builds a duplicate tree for each net of a tree (O(K²)). bufferTreeDescriptor.cpp:134–146, 221–295, request_handler.cpp:1499–1512 Return !isInverted(), wire up or hide the buttons, skip visited nets.
Request handlers and Tcl completion (5)
# Impact Finding Location Proposed fix
99 memory select_next increments selection_set.end() after a link outside the selection (Master, Net) was inspected; handleInspectBack doesn't restore selection_itr. request_handler.cpp:2747, 2800–2816, 2868–2880 Check for end() before stepping; restore the iterator on back.
102 memory Sessions don't observe postReadDb: after read_db, current_inspected, selection_set,, and selectables dangle while the client refreshes the Inspector; internal heat maps keep the old chip_; destroyed dbMarker* stay inspected. Item 7 covers only loadChipletHeatMap. web.cpp:411–511, request_handler.cpp:6160–6175, 7707–7713, tile_generator.cpp:6429–6447 Invalidate selections and re-point heat maps on postReadDb; invalidateSelection() on marker destruction and DRC report reload.
114 security Tcl injection through Tab completion: kBoundary omits ;, ( and ), and addVariableCompletions/addArgumentFlags paste the context into Tcl_Eval. Tab on a line containing ; runs arbitrary Tcl outside TclEvaluator::eval(). See #11167 F-40. request_handler.cpp:5421–5457, openroad/cli_completer.cc:25, 154–200 Use Tcl_GetVar2Ex and Tcl_EvalObjEx with list objects; add ;() to kBoundary.
119 DoS Five unbounded paths: schematic cone depth (up to 2.1 G empty iterations); DrawRectOp without clipping and DrawStringOp without a font size cap (out-of-bounds read); exponential recursion in ClockTreeReport::flattenNode on multi-driver nets; no debounce on marker create/destroy (unbounded write queue); heat map grids with no bin cap (~200 GB for 0.1 µm bins on a 5 mm die), dx == 0 underflow, out-of-bounds on an empty GCell grid. Part of #11167 F-20. request_handler.cpp:4895–4997, tile_generator.cpp:7295–7360, glyph_cache.cpp:124–153, clock_tree_report.cpp:352–408, heatMapCore.cpp:633–705 Cap each path; clip to the tile; size_t offsets; recurse once outside the driver loop; debounce drcUpdated; cap the bin count.
141 wrong result Handler state: inspect with select_id: -1 replaces multi-object highlights; timing_highlight with path_index < 0 clears the user's selection; right-click or Shift+click on space wipes selectables and history, breaking Inspector links; clear_* actions return connected_count: 0 (a false "Nothing connected" toast); find with no match reports 0 while keeping the selection; overlay and heat map tiles ignore cancelled_ids; DRCHandler::min_box_ keeps the old tech's value after read_db. request_handler.cpp (8 places, 2354–7426) Keep highlights on -1; clear only for path_index >= 0; keep selectables on empty clicks; omit connected_count for clear_*; return selection_set.size(); honor cancelled_ids; cache min_box_ per tech.
Timing (7)
# Impact Finding Location Proposed fix
12 wrong result "Logic Delay" shows pathDelay()->delay(), the set_max_delay value (usually 0). "Logic Depth" excludes every inverter; Qt excludes only consecutive pairs. See #11908 #3. timing_report.cpp:248, 152 Port TimingPath::updateLogicMetrics (openroad/gui/src/staGuiInterface.cpp:326).
27 leak ✅ Fixed in #12041: the web no longer calls makePathGroups. Mode::makePathGroups doesn't free the previous one, so every histogram, drill-down, or filtered highlight leaks a PathGroups. Qt does the same. timing_report.cpp:367 mode->deletePathGroups() first. The root fix belongs in OpenSTA.
57 cleanup The unconstrained_count++ branch never runs: path groups are built without unconstrained endpoints. timing_report.cpp:453 Remove it.
85 wrong result A negative max_paths reaches group_path_count (size_t) as SIZE_MAX and disables pruning. Only from a hand-written request; the UI always sends 100. See #11167 F-09. request_handler.cpp:5512–5548 Clamp max_paths; validate slack_min and slack_max.
98 crash web_save_report -setup_paths 0 (or -hold_paths 0, or max_paths: 0 in a request) segfaults: check_positive_integer accepts 0 and PathGroup::prune() reads path_ends_[SIZE_MAX]. web.tcl:164–179, timing_report.cpp:176–220, openroad/sta/search/PathGroup.cc:183–215 Return early when max_paths <= 0.
109 crash computeTimingCone() dereferences a null vertex for signal pins tied to a supply or to a Liberty pg_pin: they pass isSupply() but have no graph vertex. timing_report.cpp:863–916 Check pinLoadVertex/pinDrvrVertex after ensureGraph().
136 wrong result netHpwlDbu() tests dx() < 0 instead of isInverted() and returns 2 DBU for empty nets; select_net_length_bin loses nets on bin edges and the longest net; the capture path gets the launch clock's isPropagated(); cmdMode() is hard-coded with multiple modes; the timing cone skips the load vertex of INOUT pins and treats a negative depth as unlimited. timing_report.cpp:71, 249–267, 327–328, 786–821, 991–1009, request_handler.cpp:4064–4078, 5704–5707 isInverted() and int64_t; compare in one type, inclusive in the last bin; end_clk->isPropagated(); path->mode(sta_); visit both vertices; reject negative depth.
3DBlox and multiple techs (8)
# Impact Finding Location Proposed fix
3 crash Opening the Master property of an instance inside a chiplet crashes: getInstances calls getChip()->getBlock()->getInsts(),, and the HIER top chip has no block. See #11167 F-27. dbDescriptors.cpp:945 Walk the blocks of all chiplets (a null check would only hide the instances).
29 3DBlox select_fanout_bin answers "no design loaded": the histogram counts all chiplets with blocks(), but the click uses getBlock(). request_handler.cpp:3935 Use gen_->blocks() for the click too.
30 crash visitAllObjects assumes tech, chip and block exist; gui::select <type> dereferences null in 3DBlox or with no design. See #11167 F-27. dbDescriptors.cpp:527, 4168–5412 Null guards; walk the chiplet blocks in 3DBlox.
31 3DBlox With more than one tech (common in 3DBlox), getTech() throws ODB-0432, and gui::select of layers, vias and rules fails. dbDescriptors.cpp:4168–4563 Iterate db_->getTechs().
71 UI Hidden chiplets are kept in a cookie and hidden layers in sessionStorage. In a new tab, the first layer toggle marks those chiplets visible and rewrites the cookie without them. display-controls.js:1190–1390, 736–812 Apply the cookie's chiplets to layerModel before the first render.
144 3DBlox More than 15 features depend on a single getBlock() and fail or come up empty with a HIER top: save_image -web, /download/image, save_animated_gif, Find, the net length histogram, timing cone, clock tree, ruler snap, focus nets, route guides, edit dialogs, regions, sites, pin label margins, default module and group colors, BufferTreeDescriptor::visitAllObjects, and four guiDispatch commands. tile_generator.cpp (6 places), request_handler.cpp (5), timing_report.cpp:849, clock_tree_report.cpp:76, gifWriter.cpp:84, guiDispatch.cpp:246–358 Iterate gen_->chiplets()/blocks(), with world_xfm and the chiplet prefix where needed.
145 3DBlox world_xfm is lost in selection and highlight overlays, SelectionBrowser zoom, Gui::saveImage (nesting depth ≥ 2), clearOutsideDieArea (erases heat maps of polygonal chiplets) and renderer_host (a hidden first chiplet swallows drawLayer for the visible ones). request_handler.cpp:1592–1724, 2400, 2882–2889, 3458–3468, guiDispatch.cpp:766–797, heatMapCore.cpp:790–824, tile_generator.cpp:6821–6828 Keep a dbTransform with selections; accumulate it in the DFS; apply transform_; skip hidden chiplets.
146 3DBlox getTech() is also called outside visitAllObjects (non-default rule, same-net rule, obstruction actions) and throws ODB-0432; DbTechDescriptor::getName returns "Default" for every tech; marker categories use parent->getBlock() (null in 3DBlox), and markers miss the dbChipInst, dbChipConn and dbChipRegionInst sources. dbDescriptors.cpp:310–313, 2849, 4520, 4659, 4938–5055 Use the object's own tech and name; fall back to dbChip*; add the 3DBlox sources.
DRC (5)
# Impact Finding Location Proposed fix
11 wrong result DRC markers disappear after every command: drc_markers hides all markers of the category, and the client calls drcWidget.refresh() after each successful Tcl command. Visibility lives in ODB, so every session is affected. See #11908 #1. request_handler.cpp:7658, main.js:1031 Reset visibility only when switching category, not on refresh.
39 UI Choosing "(none)" clears the tree but never tells the server, which keeps drawing the previous category. drc-widget.js:116 Send the request that clears the active category.
92 UI DrcFileDialog builds //name at the root. Cosmetic. drc-widget.js:647, 689 Don't add / at the root.
110 crash handleDRCLoadReport passes the HIER top (no block, no tech) to dbMarkerCategory::fromTR, which dereferences both. request_handler.cpp:7707–7708, openroad/odb/src/db/dbMarkerCategory.cpp:635–648 Check block and tech first, and guard fromTR.
127 wrong result Marker IDs restart in each subcategory, but the server sends only getId(),, and findMarkerById() returns the first match: clicking a marker in the second or later subcategory acts on one in the first. request_handler.cpp:7356–7375, 7553, 7752–7906, drc-widget.js:269–351 Send the subcategory path and search subcat->getMarkers().
Charts (4)
# Impact Finding Location Proposed fix
13 wrong result Hover, double-click, layout and axes read _currentTab instead of the tab that was drawn. Switching from Setup to Fanout mid-request (or a failed request) leaves setup bars with a "Nets / Fanout" tooltip, and double-click sends select_fanout_bin with slack limits. charts-widget.js:782, 550, 633, 749, 867 Use _drawnHistogram.tab and the units it was drawn with, everywhere.
32 UI The static report shows the histogram filters, but its cache only knows setup and hold, and its drill-down only filters by slack: picking a filter silently shows unfiltered data. charts-widget.js:251 Hide the filter row in static mode, as the Update button is.
93 wrong result CSV export doesn't quote fields; a group name with a comma shifts the columns. See #11167 F-43. charts-widget.js:192 Quote CSV fields.
161 UI Static report: ClockTree and DRC fetch uncached data at startup (errors on entry); timing cone, net length, fanout double-click, DRC Load, Save DB, Global Connect and Add Label stay enabled and fail; three TimingWidget promise chains have no .catch(). clock-tree-widget.js:245–247, drc-widget.js:19–37, timing-widget.js:250–722, charts-widget.js:35–40, 864–901, label-manager.js:50–53, menu-bar.js:75–136 Gate them on isStaticMode(app); add the .catch().
Clock tree (6)
# Impact Finding Location Proposed fix
41 UI The tooltip is position: absolute inside the panel but placed with clientX/clientY, so it is offset by the panel's position. clock-tree-widget.js:750 Subtract the container's getBoundingClientRect(), or use position: fixed.
42 hang The tick loop runs from _timeMin to _timeMax with a step that shrinks with zoom, and wheel zoom has no limit: millions of iterations, and eventually val += interval stops changing val and the loop never ends. clock-tree-widget.js:657, 295 Draw only visible ticks; cap the scale.
43 leak A global mousemove listener on window is never removed and runs on every mouse move on the page. clock-tree-widget.js:308 Hover on the canvas; listen on window only while dragging.
80 wrong result Each clock's root is the net of its first pin only; a clock defined on several pins or ports loses the other trees. clock_tree_report.cpp:439–455 One root per clock pin; compare with Qt.
128 wrong result TreeNode::findChild() lacks the target == net check that Qt has: fanout is always 1, levels step by 2, and a duplicate synthetic root appears. classifyDriver() tests !inst, but top-level ports have top_instance_, so every clock port is kUnknown. Line 480 lacks && root->leaves.empty(). clock_tree_report.cpp:99–139, 197–217, 303–409, 480 Add the check, use isTopLevelPort(pin), fix line 480.
159 UI Clock tree data that arrives while the tab is hidden sets _scale = 0 (blank canvas, zoom stuck); "0 clocks" keeps the old tree; panning fires a click; right-click leaves _dragging set; the highlight request has no .catch(). In the Schematic, _zoomToSelected divides by zero (scale(Infinity)), and wheel zoom and fanin/fanout depth are unbounded. clock-tree-widget.js:299–418, 707–719, schematic-widget.js:203–210, 884–904, 1040–1049 Defer the fit to the ResizeObserver; clear on 0 clocks; check the button and drag distance; clamp scale and depth.
Schematic (3)
# Impact Finding Location Proposed fix
50 UI Instance names become netlistsvg cell keys and go unescaped into SVG id, class, and text; a name like a<3> breaks the drawing and selection by #cell_…. Not exploitable XSS: the CSP has script-src 'self'. See #11167 F-13. schematic-widget.js:750 Safe keys (indices), the name only in escaped text; test with a<3> and ".
77 UI Export clones the SVG with the view's style.transform, so the SVG, PNG and copy come out shifted or clipped; in the empty state it exports the old hidden SVG. schematic-widget.js:906, 1267–1294, image-export.js:31 Strip transform and highlights from the clone; refuse to export when empty.
94 cleanup The debug global window.__lastSchematic keeps the last schematic's JSON alive. schematic-widget.js:1401 Remove it.
Editing (2)
# Impact Finding Location Proposed fix
79 wrong result insert_buffer in driver mode uses pins.front() as the driver; if the user picked a load first, the load goes to insertBufferAfterDriver. mode isn't validated. request_handler.cpp:8180–8276, edit-dialogs.js:268 Check pin directions per mode on the server; send the driver separately from the client.
148 wrong result Global Connect "Add rule" always has -power checked, so add_global_connection -power silently turns VSS from GROUND to POWER and connects pins at once. Only "Apply (force)" is offered, and success uses the red error banner. See #11908 #7. edit-dialogs.js:79–87, 138–166 A global_connect_add handler that calls dbGlobalConnect::create (as Qt does); offer Apply and Apply (force); an informational style for success.
Tcl commands and GIF (3)
# Impact Finding Location Proposed fix
51 UI save_image -resolution without a tech divides by getDbuPerMicron(), which is 0, and Tcl reports a cryptic "divide by zero". web.tcl:86–90 A clear error when there is no tech.
86 wrong result A negative save_animated_gif -key means "the latest GIF" in web.i, so a wrong value writes to another GIF instead of failing. web.tcl:312–360, web.i:134–161 Reject negative keys in Tcl.
162 wrong result In a Qt build running -web, save_image out.png (without -web) goes to gui::save_image, hits GUI-0008, returns TCL_OK and writes nothing. web_server_wait_cmd calls std::exit and loses -metrics. save_animated_gif accepts -width 0 (a regression from gui.tcl) and conflicting flags; a zero DBU silently zeroes coordinates; create_toolbar_button, create_menu_item and web_server -stop ignore extra arguments. web.tcl:12–15, 80–149, 240–266, 322–458, 505–516, web.i:40–49 Use the web path when [gui::enabled] &&![gui::has_ui]; Tcl_Exit; validate flags and DBU; sta::check_argc_eq0.
Qt parity (4)
# Impact Finding Location Proposed fix
52 parity WebPainter::setPen/setBrush(dbTechLayer*) ignore the layer, keep the current color and always use a solid brush; renderers that paint "in the layer color" all come out the same. See #11908 #5. web_painter.cpp:49–70 Look up the color and pattern in the table the tiles already use.
53 parity debug_charts doesn't serialize markers() and yAxisMins(), so the reference lines and Y-axis minimum set by the tool don't show. See #11908 #41. web.cpp:812–850 Serialize them and draw them in the client.
139 parity ScriptView::frame() mishandles -display_option: {stdcells false} leaves the 7 STA subflags on, {rows true} leaves sites off, {routing_segments true} leaves routing off, {pins false} keeps pin markers. Saved forgets background_, and restoreDisplayControls broadcasts without updating the viewer hook. script_view.cpp:183–295, tile_generator.cpp:1171–1219, web.cpp:2658–2730 Propagate parent and child flags; save background_; call setDisplayState().
142 parity rasterizeWebPainterOps: circles ignore brush and pen width; brush patterns are ignored; rotated text isn't swapped and ignores the DPR; legends are anchored per tile, so they repeat on every 256×256 tile; margin math in int32; drawAccessPointsLayer() ignores instance visibility. See #11908 #15 and #67. tile_generator.cpp:4335–4356, 7295–7448, web_painter.cpp:28–35, renderer.cpp:112–240 Implement fill, width and patterns; swap and scale rotated text; draw legends in viewport coordinates; int64_t; skip hidden instances.
Client connection (6)
# Impact Finding Location Proposed fix
35 UI Unlike WebSocketTileLayer, HeatMapTileLayer neither keeps nor cancels request IDs: after switching heat maps, a late response from the old one lands on top. main.js:494–547 Keep the ID, cancel on refresh and tile removal, drop stale responses.
36 UI A reconnect with the same bounds doesn't redraw; tiles rejected during the outage stay blank until the user pans. main.js:1259 Refresh the tiles after reconnecting.
37 hang Each connect() creates a new readyPromise, but startup waits on the first: if the first connection fails and the second succeeds, the page stays empty. websocket-manager.js:128 Create it once and resolve it on the first successful connection.
90 hang An exception in _pump() leaves the entry in pending forever; the reconnect timer is neither stored nor cancelled. websocket-manager.js:197, 384–402 try/finally; keep and clear the timer.
91 leak A tile's onerror doesn't call releaseTileBlob. websocket-tile-layer.js:134 Release the blob on error.
155 hang _pump() stops on backpressure, and if _inFlight reaches 0 before the buffer drains, nothing restarts it. _requestTile doesn't check requestId in .then(), leaking blob: URLs and possibly overwriting a newer tile. websocket-manager.js:384–402, 475–521, websocket-tile-layer.js:106–204 Pump again from _checkLiveness() or a drain timer; check and clear requestId.
Layout and capture (8)
# Impact Finding Location Proposed fix
45 UI The confirmation modal's overlay (z-index 4000) sits under the menu bar (10001) and the context menu; the bar stays clickable, and an open menu covers the dialog. style.css:2061 Raise the overlay above both.
48 UI Captures are taken in CSS pixels: half the visible resolution at DPR 2. capture.js:239 Multiply by currentDpr().
49 UI Submenus and the layer menu aren't clamped to the viewport (the main context menu is) and get cut off near the bottom. display-controls.js:1097, context-menu.js:187 Use the main menu's math.
72 UI The saved layout doesn't survive a reload: loadLayout() collapses the saved panes, then activateTab() reopens them and saves hide*: false; closed tabs come back; activateTab() and closeComponent() don't save. grid-layout.js:1135–1176, 1254–1326 Restore tabs without reopening collapsed panes or closed tabs; save on activate and close.
73 UI "Capture entire layout" comes out incomplete in merged mode: a merged tile calls Leaflet's done() on the first painted layer and is a canvas, which tilesPending doesn't count; a failed tile counts as pending until the 6 s timeout. capture.js:170–218, tile-merge.js:395 Count in-flight renders in MergedTileLayer; don't count rejected tiles.
147 UI Stacking: overlayLayer (~20) and heatMapLayer sit under the pseudo-layers (999–1004); the toast and highlight picker (3000) sit under menus and modals; the Tcl completion popup is clipped by the pane's overflow: hidden; .pending-indicator covers menu bar buttons. main.js:100–103, 2081–2094, display-controls.js:238–241, style.css:676–680, 1102–1202, 2201–2252, tcl-completer.js:34–40 Raise the overlay and heat map layers, the toast and the picker; mount the popup on body with position: fixed; move the indicator below the bar.
150 UI Closing the last tab of a maximized pane blanks the whole UI, because collapsePane() doesn't leave maximized mode. notifyResize tests an app that doesn't exist, and #pane-left lacks collapsible. grid-layout.js:1294–1326, 1376–1378, style.css:1084–1167, index.html:34–42 restoreMaximized() in collapsePane(); fix the CSS rule; drop the dead branch; add collapsible.
151 UI drawSvgOverlays clones Leaflet's SVGs with their inline translate3d and also offsets them, so rulers and selections shift after a pan; panes are drawn in onload order. capture.js:92–120 Clear style.transform on the clone; wait for all images and draw in order.
Inspector, labels and rulers (8)
# Impact Finding Location Proposed fix
70 UI The Inspector's highlight picker closes itself the second time: closeHighlightPicker() removes the element but leaves its capture listeners on document, which close the new popup on mousedown. inspector.js:216–276 One AbortController per popup; clamp the position to the viewport.
74 UI The Inspector stays on "Loading…" when a request fails. refreshInspector() handles Rulers but not Labels, so toggling µm/DBU with a Label open sends select_id: -1 and gets stuck. inspector.js:505–590, 1173 Restore the previous content on error; treat Labels like Rulers.
75 UI Editing a Label after dragging it sends it back: the Inspector keeps the old label object in its closure. label-manager.js:189–245 Look the label up by name at edit time; select it again after _commitMove.
76 UI Cancelling a ruler leaves _snapTimer and an in-flight snap alive, so the indicator and preview reappear; the ruler's editable label is never drawn. ruler.js:89, 157, 240–270, 460 Clear the timer and drop stale responses by generation; draw ruler.label with textContent.
78 UI resyncBounds() changes the DBU→latlng transform and redraws tiles, but not rulers or label handles. main.js:1503–1555 Re-render rulers and label handles after applying the bounds.
82 UI "Clear > Focus nets" leaves the nets in app.focusNets; the Inspector's Focus button still shows them focused,d and the next click sends remove. context-menu.js:114–125 Clear app.focusNets in _syncAfterAction.
156 UI Rulers and labels: a fast click makes a 0-length ruler; the preview ignores Manhattan mode; activating the ruler without a design throws Invalid LatLng (NaN, NaN); no preview if snap fails; clearAll* leaves a stale object in the Inspector; the Delete button injected in requestAnimationFrame can leak into Inst/Net or delete the wrong label; _commitMove doesn't restore the handle on error; endcap ticks keep the zoom they were created at. ruler.js:81–590, label-manager.js:178–280 Render Delete synchronously; clear _lastSnapResult; guard designScale; draw the preview in catch; honor Manhattan; clear the Inspector; update ticks on zoomend.
157 UI Inspector Delete doesn't check whether the selection changed during the confirmation modal and can delete another object; focus and route guide toggles don't revert on error; mouseleave doesn't cancel the hover, and stale responses clear newer request IDs; back and forward don't sync the Schematic; the number editor accepts Infinity, and Escape submits undefined. inspector.js:167–198, 289–330, 412–587, 888–910 Check selectionToken after confirmation; revert on error; compare requestId; sync the Schematic; Number.isFinite; a cancel flag on Escape.
Small frontend fixes and widgets (15)
# Impact Finding Location Proposed fix
33 UI ✅ Fixed in #12355. Open/Save DB puts the path raw into the Tcl command: a path with spaces fails, and [...] or $ are evaluated. See #11167 F-16. menu-bar.js:569 Backslash quoting, as Tcl's list does.
34 UI ✅ Fixed in #12517. tclBrace breaks on unbalanced braces (e.g. a regex a{); escaping with \{ doesn't work either, because inside braces the backslash stays in the value. See #11167 F-19. edit-dialogs.js:57 The quoting from item 33, in a shared helper.
38 UI Right-click in label mode creates a label, selectAtLatLng returns undefined, and the context menu's .then throws: an unwanted label and no menu. main.js:1883, 2068 Always return a promise; don't create labels on right-click.
40 UI The Tcl completer applies late responses without checking whether the text changed; when typing fast, an old suggestion replaces new text. tcl-completer.js:207–255 Number the requests and drop all but the latest.
44 UI Global shortcuts fire while a modal is open (only inputs are ignored); buildModal's Escape only works with focus inside the modal. main.js:2131, ui-utils.js:897 Ignore shortcuts while an overlay is open; listen for Escape in the capture phase on window.
46 crash theme.js calls localStorage.getItem at module level without try; with site data blocked it throws SecurityError, the rest of the bundle doesn't run, and the page never starts. theme.js:106 try/catch with the default theme.
47 perf The Tcl console appends one <span> per line with no limit and reads scrollHeight on each line, forcing a reflow. main.js:936 Cap the line count; scroll in requestAnimationFrame.
83 UI setLayerPattern() and selectView() don't call app.syncDisplayState(); the server only picks them up on the next unrelated sync. display-controls.js:343, hierarchy-panel.js:128 Call app.syncDisplayState() in both.
95 UI Find doesn't send use_dbu and calls redrawAllLayers() where refreshOverlay() would do. search-nav.js:62, 87 Send use_dbu; refresh only the overlay.
149 UI Display controls: selectability.stdcells never turns off (_syncAll() ignores visKey in selModel); phys_fill starts false against true in the backend and Qt; "Show layer range" appears on Implant/Other and doesn't cross Frontside/Backside; layer toggles don't refresh overlayLayer; late renderer_controls responses repopulate the controls; clearing a heat map number sends null. Part of #11908 #2/#9. vis-tree.js:143–176, main.js:259, display-controls.js:763–1823 Sync visKey; align phys_fill; limit the layer range to routing/cut across the full stack; refreshOverlay() on change; version the request; Number.isFinite.
152 UI Canvas selection calls refreshOverlay() instead of scheduleRefreshOverlay() (stale SelectionBrowser); overlap cycling reads selected[0] for the Schematic; a superseded right-click still opens a menu; "Clear > Route Guides" and "Clear > All" don't clear routeGuideNets/focusNets. main.js:577–584, 1920–1980, 2070–2074, context-menu.js:247–274 scheduleRefreshOverlay(); use data.type; check data before showing the menu; clear both sets.
153 UI Ctrl+F takes over the browser's search in static reports; z/Shift+Z fire with Cmd on macOS and plain shortcuts fire with Alt; <select> isn't ignored; horizontal scroll (deltaY === 0) zooms out in the map, 3D, ClockTree and Schematic; canonicalShortcut drops + and doesn't match Space. main.js:2129–2182, menu-bar.js:32–62, 386–389, ui-utils.js:844–857, 3d-viewer-widget.js:255, clock-tree-widget.js:291, schematic-widget.js:203 !isStaticMode(app); check metaKey, altKey and SELECT; return on deltaY === 0; fix the parsing.
154 UI Application Font: an old custom value always wins over the chosen preset. Insert Buffer doesn't select the new buffer and allows a double submit. TclCompleter keeps a stale _replaceEnd during the debounce (Enter/Tab pastes extra text), its cache misses :: commands and new procs, and the blur timer isn't cancelled. See #11908 #28. options-dialogs.js:93–163, edit-dialogs.js:268–291, tcl-completer.js:127–201, 351–374 Clear the custom field on preset change; disable OK while pending; invalidate on input; bypass the cache for : prefixes; clear the timer.
158 UI HierarchyBrowser and ClustersWidget use node.checked instead of checked || indeterminate: unchecking one child hides the direct instances of every ancestor. An empty module color map sent after read_db disables the default colors for good, and HierarchyBrowser lacks reloadIfEmpty(). hierarchy-browser.js:122–277, clusters-widget.js:214–222 Include indeterminate; skip empty sends; add reloadIfEmpty().
160 UI Widgets: DRC marker loads and the file dialog have no generation counter, the direct-markers toggle desyncs, single toggles neither update nor revert the parent; Charts' barWidth goes negative in narrow panes, drill-down has no generation counter, and revokeObjectURL() right after click() breaks CSV download in Firefox and Safari; SelectionBrowser steals the filter's focus on every refresh; 3D "True Z" clears DRC highlights and _showWebGLUnavailable puts err.message into innerHTML; Find doesn't clear the old highlightRect; right-click on column grips leaks a mousemove listener. drc-widget.js, charts-widget.js, selection-browser.js:150–274, 3d-viewer-widget.js:717–1068, search-nav.js:50–95, ui-utils.js:798–806 Generation counters; defer revokeObjectURL; keep the filter's focus; reapply DRC after True Z; textContent; beginSelection(); e.button === 0 on grips.
One-line fixes (3)
# Impact Finding Location Proposed fix
8 crash selectAt computes 256 * (1 << zoom) in int; at zoom ≥ 24 it overflows to 0, and the integer division kills the process (SIGFPE). Tiles check z ≤ 30; handleSelect` doesn't. Only on huge designs (above ~2.7e8 DBU) or with a forged request. See #11167 F-20. tile_generator.cpp:3248, request_handler.cpp:2278 Clamp zoom to [0, kMaxTileZoom]; compute in double.
15 wrong result zoom_out(x, y) calls zoomIn. Affects the Qt GUI too. See #11908 #10. openroad/gui/src/gui.i:279 Call zoomOut.
19 wrong result list_dir casts sizes to int (wrong above 2 GiB); is_directory() without an error_code throws on a symlink loop or a permission error, and the Open/Save dialog shows nothing for that folder. request_handler.cpp:7234, 7204 uint64_t; is_directory(ec), skipping only the bad entry.
Cleanup, tests and docs (17)
# Impact Finding Location Proposed fix
55 cleanup golden-layout is dead (the layout moved to grid-layout.js) but still installed and bundled: the npm dependency, vendor.css, the gl-theme-*.css files and the .lm_ rules in style.css and theme.js. openroad/web/package.json:7 Remove all of it, plus the references in BUILD, the lockfile, index.html and bundle_test.py.
56 cleanup web-py.i is a SWIG interface for Python that no BUILD uses. web-py.i Delete it.
58 leak The default ~GIF() doesn't call GifEnd: an abandoned GIF leaves the FILE* open, the buffer allocated, and the file incomplete. See #11167 F-34. openroad/web/include/web/core.h:59 A deleter that calls GifEnd.
59 leak 3D viewer: clearHighlightDRC removes the InstancedMesh from the scene without dispose(), leaving geometry and material on the GPU; on('destroy') never fires because grid-layout.js only hides panes. 3d-viewer-widget.js:906, 189 Call dispose(); remove the dead onDestroy handlers or emit the event.
60 license The third_party_licenses genrule only collects npm licenses, so the license of the DejaVu font embedded in the binary is missing from THIRD_PARTY_LICENSES; embed_font.py:8 still mentions LiberationMono. openroad/web/BUILD:71 Add fonts/LICENSE to the genrule; fix the comment.
61 security The dev tool preview.mjs listens on all interfaces and join(srcDir, url) accepts ..: while it runs, any machine on the network can read files outside the folder. openroad/web/test/visual/preview.mjs:102–113 Listen on 127.0.0.1; reject paths outside srcDir.
62 test The status indicator test re-implements updateStatus instead of importing it, and the copy is already out of date; it passes even if the real code breaks. openroad/web/test/js/test-status-indicator.js:55 Export updateStatus and test it directly.
63 test TestSnap asserts EXPECT_TRUE(result.found || !result.found), always true, and the other checks sit inside if (result.found). openroad/web/test/cpp/TestSnap.cpp:77, 108, 125 ASSERT_TRUE(result.found) and concrete expectations.
64 test TestSaveImage registers a global heat map factory that captures the fixture's logger. The registry outlives the test and the first registration wins, so later tests use a dead logger or the wrong source. openroad/web/test/cpp/TestSaveImage.cpp:976 Put the source in the fixture's state_.heatmaps.
65 test The cpp_tests suite lists only 10 of the 21 C++ tests. CI runs bazel test //... and isn't affected, but anyone running the suite skips half. openroad/web/test/BUILD:77 Add the 11 missing tests, or delete the suite.
66 test npm_lock_test only checks the lockfile against the module's package.json, not test/package.json. openroad/web/test/npm_lock_test.py:17 Check both.
67 docs 32 of the 77 registered request types aren't documented at all: labels, selection navigation, fanout and length histograms with bin selection, global connect, buffers and highlights, timing_cone, set_property, context_action, renderer_controls, cancel and others. openroad/web/docs/server-api.md Document them by group.
68 test main.js (~2200 lines) has no tests, and seven request types appear in none: custom_ui, debug_continue, drc_load_report, get_3d_data, heatmap_tile, set_display_state, set_route_guides. openroad/web/test/ JS tests for the logic that can be split out of main.js; C++ tests for the seven handlers.
87 cleanup GoldenLayout leftovers in main.js: createStubPanel and defaultLayoutConfig, which loadLayout() ignores. main.js:1112, 1125, 1273 Remove them together with item 55.
88 docs The README still describes GoldenLayout and fixed 256×256 tiles. openroad/web/README.md:671, 715, 731 Update it.
89 UI Minimal accessibility: <html> has no lang, and no modal has role=" dialog" or aria-modal. index.html:2 Add them.
163 test embed_font.py writes — without encoding="utf-8" (fails under LC_ALL=C); lit isn't pinned and is missing from the license tests and the README; _SCHEME_RELATIVE lacks re.I; helpers.tcl:182 uses [regexp $ignore $line1 || regexp $ignore $line2], which never tests $line2, and numeric != on strings; more C++ tests hand the fixture's logger to the global heat map factory or install renderer hooks without RAII; server-api.md contradicts the code (default port, zoomSnap, _overlay, missing push types and TileVisibility fields). embed_font.py:24–28, openroad/web/package.json:9, openroad/web/test/bundle_test.py:49–152, openroad/web/test/helpers.tcl:182–184, openroad/web/test/cpp/TestRequestHandler.cpp:2808–2833, TestSaveImage.cpp:1047, 1218–1256, openroad/web/docs/server-api.md:15 encoding="utf-8"; pin lit and check it; fix the expr and use ne; processLogger() and RAII in tests; update the doc.
主要言語
Verilog
スター
3.4k
フォーク
1.1k
平均マージ
3日 11時間
マージ済み PR(30日)
245

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

The-OpenROAD-Project/OpenROAD のほかの issue

The-OpenROAD-Project/OpenROAD の issue をすべて見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。