mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
dwarf: add missing length check in rowColumns
This commit is contained in:
parent
197d9a9eb3
commit
1054e67f01
@ -452,6 +452,7 @@ pub const VirtualMachine = struct {
|
||||
|
||||
/// Return a slice backed by the row's non-CFA columns
|
||||
pub fn rowColumns(self: VirtualMachine, row: Row) []Column {
|
||||
if (row.columns.len == 0) return &.{};
|
||||
return self.columns.items[row.columns.start..][0..row.columns.len];
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user