1
0
Fork 0
Commit graph

4497 commits

Author SHA1 Message Date
Patryk Obara
017ec3873b Update optimization level for Release in VS builds 2019-12-09 07:22:15 +01:00
Patryk Obara
f89416a20a Update version in config.h and resource script 2019-12-09 07:22:15 +01:00
Patryk Obara
9efa980b05 Create Windows dev release job 2019-12-09 07:22:15 +01:00
Patryk Obara
d1e5891c6a Reorganize Windows workflow file
Move MSYS2 jobs up (these jobs will be updated often, due to warning
limits), and use the same matrix style as Linux and macOS jobs.

Move MSVC jobs down, so the future release build will be closer to
the end of file.
2019-12-09 07:22:15 +01:00
Patryk Obara
03e94559e9 Rename directory with Visual Studio solution
Name 'visualc_net' invokes old names for Visual Studio
(Visual Studio .NET 2002 or 2003), which has no relation to content of
this subdirectory.

Also, by renaming this directory we mitigate chance, that during
merge-in from svn/trunk git will automatically inject some values from
from upstream, incompatible version of solution files. By sheer
luck this might happen without causing a conflict. Never happened so
far, but there's no point in risking it.
2019-12-09 07:22:15 +01:00
krcroft
48106d6046 Explicitly delete copy and assignment operators 2019-12-07 21:07:38 +01:00
krcroft
8c6758c8d1 Memory overrun and C++11 updates
- Limit write length into buffer, and add comment about corner-case
- Use C++11's syntax to explicitly remove private copy and assignment operators
- Use C++11 container loop syntax to shorting a cleanup function
2019-12-07 19:08:47 +01:00
krcroft
959417f6de Update allowed warnings limits 2019-12-07 19:08:47 +01:00
krcroft
cff6b05559 Improve memory safety in the DOS Drive Cache class
- Fix Bitu printf format type
- Check a pointer prior to dereferencing it
- Prevent writing one-beyond the last index
- Replace strcpy with with helper safe_strcpy, provided by @dreamer - thank you!
- Replace strcat with strncat
- Add constructor intializers for scalars and arrays
- Initialize and replace 0-value pointers with nullptr
- Pass in the buffer length when strncpy'ing into a function variable
2019-12-07 19:08:47 +01:00
Patryk Obara
88cdd8d3a0 Use python explicitly in pwsh 2019-12-07 16:24:27 +01:00
Patryk Obara
6a4eabe9fa Revert "Test if double-zip is detected"
This reverts commit cb9e448ff7faa901f19e86f609d615fbe0ae9d18.
2019-12-05 23:35:15 +01:00
Patryk Obara
c5cff3ef91 Test if double-zip is detected 2019-12-05 23:35:15 +01:00
Patryk Obara
9576db91c1 Use fixed name for a GitHub-generated zip 2019-12-05 23:35:15 +01:00
Patryk Obara
57d61085e2 Replace version with brand for .conf file suffix 2019-12-05 23:35:15 +01:00
Patryk Obara
5d644b4f53 Create package-specific README file 2019-12-05 23:35:15 +01:00
Patryk Obara
adead31b44 Add snapshot instructions to README.md 2019-12-05 23:35:15 +01:00
Patryk Obara
88ab53d3a3 Create Linux dev release job
Job uses Ubuntu 16.04 to get the widest compatibiity with Linux
distributions.

Snapshot builds are uploaded as job artifacts, but GitHub Actions do not
allow to specify compression program/params yet (everything is forced
into a zip).
2019-12-05 23:35:15 +01:00
Patryk Obara
f7fbdbf632 Move autoconfig-mandated files to docs/upstream
Autoconf enforces these files only for GNU projects. ATM these files are
out of date and might be misleading to the users.

As long as we'll not place files with the same names in this repo, git
will automatically update moved files when new commits from SVN will be
merged in.

For releases, it would probably be the best to write our own NEWS.md
file and generate CHANGES.md file out of git log.
2019-12-05 23:35:15 +01:00
krcroft
8f2a153dc2 STB Vorbis: eliminate inaccessible branch
The eliminated code removes the (ch == 1) branch, which is scoped
within this if condition: `if (rtype == 2 && ch != 1)`, therefore
the (ch == 1) branch will never be taken.
2019-12-05 10:35:44 +01:00
krcroft
a7a899fdb0 STB Vorbis: prevent division by zero in decode_resign if ch == 0
In the call to decode_residue:
  decode_residue(f, residue_buffers, ch, n2, r, do_not_decode);

The channel count is previously intialized as zero and incremented
based on a for-loop (f->channels) plus a conditional,
if (map->chan[j].mux == i).  If this doesn't happen then 'ch'
remains zero.

Once inside decode_residue(..), the code has three branches based
on channel count: stereo (ch == 2), mono (ch == 1), and then the
exception if it's neither of those (simple 'else').  It's in here
where a zero-valued 'ch' can be used as the denominator in these
calculations:
    int c_inter = z % ch
    p_inter = z/ch;

Obviously this 'else' branch is meant for channel counts greater
than two an not for zero channels; so this change simply makes
that branch only valid if (ch > 2).
2019-12-05 10:35:44 +01:00
krcroft
bedcc244d9 STB Vorbis: Check before derefercing a potential NULL pointer 2019-12-05 10:35:44 +01:00
Patryk Obara
4add527371 Fix wrong function name in the exception log
Bug report: https://sourceforge.net/p/dosbox/bugs/518/
2019-12-04 06:11:01 +01:00
Patryk Obara
15ca669199 Update allowed warnings limits 2019-12-03 06:49:08 +01:00
David Reid
84588c50bd Bump dr_wav to v0.11.2
Fixes:
- https://github.com/mackron/dr_libs/issues/84
- https://github.com/mackron/dr_libs/issues/83
- https://github.com/mackron/dr_libs/issues/82
- https://github.com/mackron/dr_libs/issues/81
- https://github.com/mackron/dr_libs/issues/80
- https://github.com/mackron/dr_libs/issues/79
- https://github.com/mackron/dr_libs/issues/78
- https://github.com/mackron/dr_libs/issues/77
- https://github.com/mackron/dr_libs/issues/76
- https://github.com/mackron/dr_libs/issues/75
2019-12-03 06:35:00 +01:00
David Reid
6b5a5acc9a Bump dr_mp3 to v0.5.4
Fixes:
- https://github.com/mackron/dr_libs/issues/86
- https://github.com/mackron/dr_libs/issues/85
2019-12-03 06:35:00 +01:00
David Reid
1866b4d295 Bump dr_flac to v0.12.3
Fixes:
- https://github.com/mackron/dr_libs/issues/93
- https://github.com/mackron/dr_libs/issues/92
- https://github.com/mackron/dr_libs/issues/91
- https://github.com/mackron/dr_libs/issues/90
- https://github.com/mackron/dr_libs/issues/89
- https://github.com/mackron/dr_libs/issues/88
- https://github.com/mackron/dr_libs/issues/87
2019-12-03 06:35:00 +01:00
krcroft
1f2ff70463 Ensure alloca is not defined before defining 2019-12-03 06:35:00 +01:00
krcroft
01a61a33f8 Remove ineffective consts and indicate unused variables 2019-12-03 06:35:00 +01:00
krcroft
d23f31fbe3 Avoid unecessary float-to-double promotion, and cleanup 2019-12-03 06:35:00 +01:00
krcroft
b55b43f543 Use PRIuPTR and define it for Windows GCC 64-bit 2019-12-03 05:12:28 +01:00
Patryk Obara
7d21bb1408 Move definition out of autoconfig 2019-12-03 05:12:28 +01:00
krcroft
7e3c4d3945 Harmonize refactoring of switch statement 2019-12-03 05:12:28 +01:00
krcroft
8a5a539f9a Cleanup printf types and explicitly state unused vars 2019-12-03 05:12:28 +01:00
krcroft
e5981c3b8e Fix uninitized scalar access 2019-12-03 05:12:28 +01:00
krcroft
d1a1932a07 Fix uninitized pointer accesses 2019-12-03 05:12:28 +01:00
Patryk Obara
91c5b4ac81 Revert "Enable Coverity "streams""
It didn't work. Coverity classifies all our builds as belonging to the
stream called 'dosbox-staging' and there's no option to change it.

This reverts commit e86e6e353e.
2019-12-02 09:35:21 +01:00
Patryk Obara
e86e6e353e Enable Coverity "streams" 2019-12-01 19:49:15 +01:00
Patryk Obara
6214b39f9e Revert "Break compilation to test GitHub badges"
This reverts commit 6ae50d77af.
2019-12-01 18:35:25 +01:00
Patryk Obara
b0df1ab1fa Fix badge URLs 2019-12-01 18:30:14 +01:00
Patryk Obara
69963cb6e4 Revert "Test badges sans links"
This reverts commit cfbe33f1fc.
2019-12-01 18:28:26 +01:00
Patryk Obara
cfbe33f1fc Test badges sans links 2019-12-01 18:26:01 +01:00
Patryk Obara
937127b961 Test shields.io badges
It seems like GitHub badges have some caching issues and they do not
work correctly (I have them showing two contradictory statuses,
depending on tab, no matter if I reload page or not).
2019-12-01 18:20:36 +01:00
Patryk Obara
6ae50d77af Break compilation to test GitHub badges 2019-12-01 18:09:00 +01:00
Patryk Obara
563ab75ff2 Remove Coverity badge
This badge is useful link straight to the Coverity report, but Coverity
decides to present the scan results in quite misleading way - mixing
runs from master with runs from other branches.

It's better to show no info at all than to show misleading info.

Link to Coverity scan is accessible in README.md, as a reference [3] in
the comparison table.
2019-12-01 11:19:11 +01:00
Patryk Obara
b05985fab4 Update allowed warnings limits 2019-11-29 06:27:14 +01:00
Patryk Obara
f5b52cb966 Use matrix to simplify Linux workflow
After many iterations, we now have really streamlined workflow file without
duplicated jobs.  It also looks very similar to macOS file.
2019-11-29 06:27:14 +01:00
Patryk Obara
f3b8bff3f5 Remove unused private field in device_EMM 2019-11-29 06:27:14 +01:00
Patryk Obara
e95b6e7063 Remove unused private field in fatFile 2019-11-29 06:27:14 +01:00
Patryk Obara
7afc052550 Silence "unused-const-variable" warning
This register dump looks useful, but it was never used for anything…
2019-11-29 06:27:14 +01:00
Patryk Obara
6325c995d6 Fix "unused-variable" warning 2019-11-29 06:27:14 +01:00