Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge dev #517

Merged
merged 2 commits into from
Jan 17, 2025
Merged

merge dev #517

merged 2 commits into from
Jan 17, 2025

Conversation

udo-munk
Copy link
Owner

No description provided.

sneakywumpus and others added 2 commits January 16, 2025 04:38
altairsim/srcsim/simcfg.c,
cpmsim/srcsim/simio.c,
cromemcosim/srcsim/simcfg.c,
imsaisim/srcsim/simcfg.c,
intelmdssim/srcsim/simcfg.c,
mosteksim/srcsim/simcfg.c:

Changed
        s = buf;
        while (fgets(s, BUFSIZE, ...)) {
to
        while (fget(buf, BUFSIZE, ...)) {
                s = buf;
since s was sometimes manipulated inside the loop.

cpmsim/srcsim/simmem.h:

Changed memrdr to match memwrt, no functional change.
Analyzer complained about a useless assignment.

cpmsim/srctools/bin2hex.c,
cpmsim/srctools/mkdskimg.c,
frontpanel/jpeg.c:

Unclosed files, also reformatted bin2hex.c.

z80core/simmain.c:

Re-did save_core and load_core since the analyzer complained about
unchecked errors.

iodevices/altair-88-dcdd.c:

Renamed dsk_check to dsk_open and leave file open on success.
Analyzer complained about possible open(2) fail in altair_dsk_data_out
and altair_dsk_data_in.

frontpanel/lpanel.c:

Fix possible memory leak.

Rest of files: Changed &buf[0] to buf, for strings and buffers, since
this looks more natural in C.
clang 19 static analyzer run & clean-up
@udo-munk udo-munk merged commit 105aba6 into master Jan 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants