Commit graph

3305 commits

Author SHA1 Message Date
Mark Pizzolato
a9a91420b0 SCP: Properly define sim_name array to avoid potential overrun 2017-03-29 07:43:11 -07:00
Mark Pizzolato
62dc8ff6ec ALTAIR: Fix potential reference to uninitialized memory (Coverity) 2017-03-29 07:04:29 -07:00
Mark Pizzolato
fa7e350c78 SCP: Avoid potential invalid pointer reference (Coverity) 2017-03-29 07:02:46 -07:00
Mark Pizzolato
cb6b0a526a SCP: Coverity warning cleanup 2017-03-28 22:35:26 -07:00
Mark Pizzolato
8d8a286c58 SCP: Add checks to avoid potential buffer overrun (Coverity) 2017-03-28 19:36:12 -07:00
Bob Supnik
d60c56d18f PDP10: Add fall through comment to case (COVERITY) 2017-03-28 19:27:27 -07:00
Bob Supnik
5896b1c20d PDP10: Documented switch fall through case (COVERITY) 2017-03-28 14:32:10 -07:00
Mark Pizzolato
3989251f85 SCP: Add more Error path checks 2017-03-28 13:40:11 -07:00
Mark Pizzolato
36f09d223f SCP: Fix potential error return checks (COVERITY) 2017-03-28 13:34:19 -07:00
Holger Veit
3e54264253 SAGE: Fix flag setting with 33bit mask 2017-03-28 13:32:22 -07:00
Mark Pizzolato
d98564544e SLIRP: silence Coverity noise 2017-03-27 20:48:27 -07:00
Mark Pizzolato
f4b7d1fbf8 SCP: Migrate some use of strcat() to sim_strlcat() 2017-03-27 08:23:03 -07:00
Mark Pizzolato
ec11ecab87 PDQ3: Fix coverity issue 1416165
Avoid potential buffer overrun using strcat() by using strlcat()
2017-03-27 07:54:07 -07:00
Mark Pizzolato
34d29d3160 SCP: Add sim_strlcpy and sim_strlcat for platforms missing strlcpy and strlcat 2017-03-27 07:51:13 -07:00
Holger Veit
9a9b5deb9c PDQ-3, SAGE: Coverity Fixes
CID       Action
   1416081   changed variable answer to int
   1416082   checked returned values with ASSURE - read error means corrupted target code.
   1416088   added return
   1416109   This fallthru was intentional - duplicated code to make coverity happy
   1416111   This fallthru was intentional - duplicated code to make coverity happy
   1416116   This fallthru was intentional - duplicated code to make coverity happy
   1416117   This fallthru was intentional - duplicated code to make coverity happy
   1416124   protected against negative return
   1416142   added ASSURE, however this case won't happen since reg_intpending==true implies positive int level
   1416145   checked non-NULL, return SCPE_ARG if NULL
   1416150   since only 2 drives are supported, fdc_selected is decoded to 0 and 1 only (allowed 2 and 3 before)
   1416152   restrict to 2 drives only
   1416166   checked value with ASSURE

   1416101   typo: should have been resx
   1416106   unnecessary code removed
   1416110   this fallthru was intentional - duplicated code to make coverity happy
   1416112   this fallthru was intentional - duplicated code to make coverity happy
   1416148   change condition to check for negative value
   1416179   break was remainder from former logic - removed
   1415866   code was remainder from former unimplemented instruction trap - removed
2017-03-27 06:57:43 -07:00
Mark Pizzolato
489752596b SLIRP: Coverity identified warning 2017-03-26 11:49:05 -07:00
Mark Pizzolato
c638950211 PDP11: Properly handle reads of less than 1 sector
Fix #412, #424
2017-03-26 06:52:21 -07:00
Mark Pizzolato
b2cd329f4c FRONTPANEL: Fix repeating register data gathering lock problem (COVERITY) 2017-03-20 23:37:50 -07:00
Mark Pizzolato
2d1b969cb7 TAPE: Stub extended gap behaviors to avoid link time errors. 2017-03-20 23:05:47 -07:00
Bob Supnik
3eb4598456 SCP: Removed KBD_WAIT and friends 2017-03-20 22:33:38 -07:00
Bill Beech
0947a69a9e isys80xx, imds-225: Cleanup Coverity identified issues 2017-03-20 13:41:24 -07:00
Bill Beech
f02a9b02f3 ibmpc, ibmpcxt: Cleanup Coverity identified issues 2017-03-20 13:40:40 -07:00
Bill Beech
bef62a51fd SWTP: Cleanup Coverity identified issues 2017-03-20 13:32:43 -07:00
Mark Pizzolato
6831746400 All VAX: Clarify Opcode Table decode values
the opcode table first word consists of bits:

<7> = FPD is legal for this opcode.
<4:6> = number of specifiers for unimplemented opcodes (VAX subsets)
<3> = unused
<0:2> = number of specifiers

The mask used to be 0x70. The convention is that x_M_y is a mask value
<right-justified>, for a macro like:

#define get_foo(x)        (((x) >> x_V_foo) & x_M_foo)

For a subset VAX (like the 3900), the unimplemented opcodes are those
2017-03-20 08:10:43 -07:00
Bob Supnik
33f02ae4d7 SDS: Add precise gap erase to MT device
As discussed in #152.  Still needs some additional sim_tape work.
2017-03-20 08:03:49 -07:00
Bob Supnik
0cc2a469b2 sigma: Add "Sigma 7 BigMem" as a model variant
BigMem is a Sigma 9 memory management retrofit to the Sigma 7.
2017-03-20 08:02:57 -07:00
Bob Supnik
c26c6ea501 NOVA, PDP1,, sigma: Various cosmetic/typo changes 2017-03-20 08:01:58 -07:00
Bob Supnik
41ea29a752 PDP18B: Limit connection poll to configured lines 2017-03-20 07:49:03 -07:00
Bob Supnik
976cf12d76 VAX780: Update 780 bug history to include REI to Compatibility mode 2017-03-20 07:48:25 -07:00
Bob Supnik
e1f8e88373 ID16, ID32: Fixed testing of 8b mode and echoed character (COVERITY) 2017-03-20 07:47:42 -07:00
Bob Supnik
a37e9284e1 I7094: Annotated fall through in switch (COVERITY) 2017-03-20 07:46:28 -07:00
Bob Supnik
a040eb4e32 I1401: Fixed MTF length checking (COVERITY) 2017-03-20 07:43:41 -07:00
Mark Pizzolato
0e6a79f078 All VAX: Initialize intermediate state vars outside of the instruction loop
Many of the intermediate state variables are captured by the instruction
history mechanism.  Make sure that these don't come into and out of
scope between instruction executions.
2017-03-18 17:59:13 -07:00
Mark Pizzolato
7c696dbbc7 Visual Studio Projects: Add projects for ibmpc and ibmpcxt 2017-03-18 17:47:52 -07:00
Mark Pizzolato
5fb61c83e3 FRONTPANEL: Fix Coverity identified issues 2017-03-18 02:17:35 -07:00
Bill Beech
0f41c24cb8 ibmpc, isys80xx, imds-225: Fix Coverity identified problems 2017-03-17 14:24:44 -07:00
John Forecast
b64f3cd1c7 CDC1700: Fix Coverity identified potential buffer overrun 2017-03-17 08:49:17 -07:00
Mark Pizzolato
fcf3104f6a FRONTPANEL: Fix Coverity identified problems 2017-03-15 21:02:09 -07:00
Mark Pizzolato
5135f137ea TAPE: Fix Coverity potential NULL pointer dereference 2017-03-15 21:01:37 -07:00
Bob Supnik
f0bee7f28e VAX750: Fixed bad test for UBA intr level (COVERITY)
IPL_UBA already has the subtract built in:

So it shouldn't be extracted again.

The whole routine looks a little strange, but the way it works is
that an interrupt from the UBA itself sets <bit 31> in the returned vector.
Because the vector is read by code and not used by hardware, the flag
bit is "harmless."

UBA interrupts occur only under strange circumstances, like bad map
pages and device NXMs. Under the simulator, with a debugged OS, they
never happen.
2017-03-15 21:00:34 -07:00
John Forecast
8d8ecc1a5a CDC1700: Fixing Coverity identified issues 2017-03-15 14:53:51 -07:00
Bob Supnik
62879beb70 PDP1, PDP8, PDP18B, PDP11: Fixed dt_seterr to clear successor states
For the PDP11, this includes deferring the setting of DONE on an error, allowing RSTS V4 to work correctly.

There was a minor (possibly only theoretical) bug in dt_seterr as well.
dt_seterr is supposed to stop the drive. If the drive is accelerating, at
speed, or stopped, it works fine. But if the drive is decelerating, it did
not clear out the "successor" states. In theory, the drive could be in the
middle of reversing - that is, there are successor states of accelerating
(in reverse) and at speed. So the successor states need to be cleared,
or the drive won't actually stop.

The fifth DECtape controller (the PDP8's TD8E) is much simpler and
doesn't have the problem.
2017-03-15 10:04:52 -07:00
Mark Pizzolato
1cd11f3464 sigma: Added missing CONST to fix broken build 2017-03-14 21:44:14 -07:00
Mark Pizzolato
6a40afea24 VAX750: Fix NULL reference check in boot command parsing (COVERITY) 2017-03-14 20:31:51 -07:00
Bob Supnik
934f4e6471 alpha: Fix Coverity identified Defect: 1416171 2017-03-14 18:22:04 -07:00
Richard Cornwell
485114cae3 B5500: Fixed Coverity bugs. 2017-03-14 20:50:09 -04:00
Mark Pizzolato
df1baf2528 CDC1700: Release 2
- Fix protect fault for 2-word instructions so that background tasks do not
   crash.
- Lay the ground work for supporting the enhanced instruction set.
- Fix disk layout bug (disks are no longer compatible with previous version).
- Add debugging support for displaying MSOS 5 system requests.
- Fix bugs found by Coverity.
2017-03-14 13:36:57 -07:00
Mark Pizzolato
ca19ac921c SCP: Fix potential NULL pointer dereference (COVERITY) 2017-03-14 10:24:18 -07:00
Peter Schorn
9f746cfefa AltairZ80: Improved diskClose error handling (Coverity Scan) 2017-03-14 18:12:27 +01:00
Bob Supnik
e7a38cc56f PDP11: Fixed spurious interrupt when setting GO
The code wasn't handling interrupts correctly when TCCM was written. In
particular, if the GO bit clears DONE, the code looked for the "SET IE" case
too soon and didn't clear the interrupt that was incorrectly generated.
The new code factors "GO" into the calculation.
2017-03-14 09:59:14 -07:00