Holger Vogt
560cb6e970
plotting/grid.c, bug fix, avoid string buffer overflow
Prevent a crash of example/FFT_test.cir.
Buffer 'buf' in function drawlingrid() has been too small.
Increase 'buf' size, and add some protection.
The example file examples/plot/test-small-plot.cir
shows the limits of plotting:
difference in two numbers at digit 14 is plotted well.
at digit 15 is plotted with bugs.
at digit 16 is reduced to integer.
consider compiling with
-O1 -D_FORTIFY_SOURCE=2
for gcc, and
/GS
for visual studio.
8 years ago
rlar
aca1b3a374
use 'abs()'
10 years ago
rlar
bd0bc3038b
use `SWAP' macro
10 years ago
rlar
2b3220086d
graph.h, grid.c, enforce consistent string buffer size (plot "units", LABEL_CHARS)
11 years ago
rlar
c5e0bcde04
cleanup using `hypot()'
11 years ago
Giorgio Vazzana
0348dcd251
bug fix, #286 buffer overflow in src/frontend/plotting/grid.c
12 years ago
rlar
83e3100917
remove unused variables
14 years ago
h_vogt
986f9b7535
grid.c: prevent overflow of div_list
14 years ago
rlar
fe1acd3757
src/frontend/** remove superfluous `return' invocations
14 years ago
rlar
7454a6d486
src/frontend/**, whitespace, indentation, ...
untabify
delete-trailing-whitespace
braces
...
checked for object file invariance on linux
14 years ago
rlar
e91e3c4ec7
lingrid(), avoid buffer overflow
Bug ID: `Buffer overflow detected - ID: 3510521'
reported by Zsolt Makaró
The variable `mag3' sometimes seems to take
unexpected values
(for example log10 can be -Inf, which will be casted to 0x80000000)
and seems then to have overflown a buffer buf[LABEL_CHARS]
14 years ago
rlar
0b5042e7da
remove CVS `Id',`log' etc. keyword incantations
14 years ago
rlar
10346e055c
#1/4 #include <ngspice/...> --> #include "ngspice/..."
14 years ago
h_vogt
ccd115c6e2
Error message on exceeding resolution limit
15 years ago
rlar
d26015586c
#1/7 use a subdirectory "ngspice" for includes to create a uniq namespace
15 years ago
rlar
f8e41f9fb5
remove second incarnation of `grid.h'
15 years ago
rlar
9e86e5ca66
rewrite (double)literal --> floating-point-literal
15 years ago
h_vogt
3547fdc5f3
explicit casts double -> int
15 years ago
rlar
eb06eeb4d9
swallow type conversion warnings
16 years ago
rlar
e6c30efe46
Nr 4/5 (x = ...) != NULL , swallow warnings
16 years ago
rlar
abb87a6115
rename `IGNORE()' --> `NG_IGNORE()'
16 years ago
rlar
80286e0032
pour `IGNORE()' all over the source
16 years ago
rlar
75b6eeb94a
add `int' casts to some strlen() expressions, and center labels on a xlog scale
16 years ago
rlar
1779d62558
add some `int' and `size_t' casts
16 years ago
rlar
5f4b0aa798
(int) cast the return value of some strlen() invocations
16 years ago
rlar
6b5debfc1e
use `NUMELEMS' and add some `(int)' casts
16 years ago
rlar
8f8071aceb
fix some ancient \n\r and \r\n typos
16 years ago
rlar
76d22c3691
function rename, Update() -> DevUpdate()
16 years ago
rlar
38abf408d5
function rename, DrawLine() -> DevDrawLine()
16 years ago
rlar
1693270d35
function rename, Text() -> DevDrawText()
16 years ago
rlar
984754de75
function rename, Arc() -> DevDrawArc()
16 years ago
rlar
2fcbcc5f48
bug fix, implementation of the X11 draw arc implementation.
16 years ago
sjborley
67ff1b3a83
Tidy up of the header files in src/frontend and sub-directories. Motivation is to remove extern declarations within .c files and place them in .h files. Added new header files where necessary (and adjusted makefile.am files where required)
21 years ago
pnenzi
1b7c9386fe
Bug fixes from previous commit.
25 years ago
pnenzi
d735c9a871
Some code cleanup
25 years ago
arno
3d4cf4d86c
* src/include/Makefile.am src/include/cpstd.h
26 years ago
arno
4d26c7626b
* src/frontend/agraf.c src/frontend/agraf.h
26 years ago
arno
8696a52e89
* src/Makefile.am src/main.c src/sconvert.c
26 years ago
arno
0fb8f339b8
* man/man1/nutmeg.1 man/man1/spice.1 src/multidec.c
26 years ago
pnenzi
978f1c32a2
Initial revision
26 years ago