1
0
mirror of https://github.com/open-simh/simh.git synced 2026-02-01 06:22:58 +00:00
B. Scott Michel 1e371e7c98 Memory sanitizer fixes
Fixes suggested by running the Clang memory santizer on the Github CI/CD
pipeline:

- sim_exp_check: Use calloc() to allocate and initialize the PCRE
  captured string offset vector. Also check the offsets to ensure they
  are captured substrings:

  -- If a substring wasn't captured, the offset pair is { -1, -1 }.
     (Of course, this would never happen in SIMH. :-)

  -- Remove the corresponding "_EXPECT_MATCH_GROUP_{pat}" variable
     from the environment when its substring isn't captured.  unsetenv()
     is locally implemented in scp.c, which sets the environment
     variable to an empty string; it isn't actually removed.

  Failure occurs in multiple tests.

- _sim_debug_write_flush: Ensure that debug_line_buf_last's underlying
  buffer is initialized when realloc-ed. (i650 failure.)

- vid_version: Initialize local variables "compiled" and "running". MSan
  claims that these aren't initialized. Reading the SDL  source, the
  patch level might not be initialized on some platforms. (multiple
  sim_video tests.)

NOTE: Do not attempt to run interactive memory-santized simulators on
Linux platforms where ncurses <= 6.2+20201114-2. MSan detects
uninitialized variables within ncurses; newer versions of ncurses fix
them.
2023-07-16 16:35:58 -04:00
2023-07-15 17:12:23 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-30 15:50:13 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-05-17 20:18:42 -04:00
2023-06-18 13:12:34 -04:00
2023-05-18 12:46:01 -04:00
2023-07-16 16:35:58 -04:00
2022-11-29 12:04:56 -05:00
2023-04-01 07:01:08 -07:00
2022-09-15 14:15:28 -07:00
2022-09-15 14:15:28 -07:00
2022-03-06 02:11:57 -08:00
2022-03-14 15:28:39 -07:00
2022-03-06 02:11:57 -08:00
2023-07-16 16:35:58 -04:00
2023-05-17 20:18:42 -04:00

Open SIMH machine simulator

This is the codebase of SIMH, a framework and collection of computer system simulators.

SIMH was created by Bob Supnik, originally at Digital Equipment Corporation, and extended by contributions of many other people. It is now an open source project, licensed under an MIT open source license (see LICENSE.txt for the specific wording). The project gatekeepers are the members of the SIMH Steering Group. We welcome and encourage contributions from all. Contributions will be covered by the project license.

The Open SIMH code base was taken from a code base maintained by Mark Pizzolato as of 12 May 2022. From that point onward there is no connection between that source and the Open SIMH code base. A detailed listing of features as of that point may be found in SIMH-V4-status.

PLEASE NOTE

Do not contribute material taken from github.com/simh/simh unless you are the author of the material in question.

Description
The Open SIMH simulators package
Readme 140 MiB
Languages
C 96.9%
Assembly 1%
CMake 0.5%
Batchfile 0.4%
Makefile 0.4%
Other 0.5%