Date:2015-01-07 23:56:25 (3 years 11 months ago)
Author:Werner Almesberger
Commit:ad2c07f49c326140a0839e6453fb68bb48745781
Message:dump.c (order_vecs): don't trip over vectors with deferred resolution

This caused segfaults in code view and dumping with -T -T.
Files: dump.c (2 diffs)

Change Details

dump.c
11/*
22 * dump.c - Dump objects in the native FPD format
33 *
4 * Written 2009-2012, 2014 by Werner Almesberger
5 * Copyright 2009-2012, 2014 by Werner Almesberger
4 * Written 2009-2012, 2014-2015 by Werner Almesberger
5 * Copyright 2009-2012, 2014-2015 by Werner Almesberger
66 *
77 * This program is free software; you can redistribute it and/or modify
88 * it under the terms of the GNU General Public License as published by
...... 
170170{
171171    struct vec *vec;
172172
173    for (vec = vecs; vec; vec = vec->next)
174        if (!vec->base || n_vec_refs(vec->base) != 1)
173    for (vec = vecs; vec; vec = vec->next) {
174        const char *name = (const char *) vec->base;
175
176        if (!vec->base || *name || n_vec_refs(vec->base) != 1)
175177            recurse_vec(curr, vec);
178    }
176179}
177180
178181

Archive Download the corresponding diff file

Branches:
master



interactive