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

typos (no functional changes) #1090

Merged
merged 4 commits into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ If applicable, add screenshots to help explain your problem.

If the issue is reproducible only when scanning a specific file, attach it to the ticket.

<!-- CAUTION: Do not attach malware unless in an encrypted zip. Better yet, provide a link to the file on on VirusTotal.
<!-- CAUTION: Do not attach malware unless in an encrypted zip. Better yet, provide a link to the file on VirusTotal.

The maximum size for file attachments on GitHub Issues is 25MB and the maximum size for images is 10MB. If the file is too big, you can upload it to a password protected website and send us the URL and the credentials to access it.

Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ if(ENABLE_TESTS)
# No unittest either!
# Some weird Python installations do exist that lack standard modules like unittest.
# Let's make sure these folks know the Python 3 install we found won't cut it.
message("Python 3 found: ${Python3_EXECUTABLE}, but it is missing the unittest module (wierd!).")
message("Python 3 found: ${Python3_EXECUTABLE}, but it is missing the unittest module (weird!).")
message(FATAL_ERROR "The tests won't work with this Python installation. You can disable the tests by reconfiguring with: -D ENABLE_TESTS=OFF")
endif()
endif()
Expand Down
18 changes: 9 additions & 9 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ configuration options.
- [Customizing the Install Directories](#customizing-the-install-directories)
- [Running the Public Test Suite](#running-the-public-test-suite)
- [Custom CMake Config Options](#custom-cmake-config-options)
- [External Library Depedency Configuration Options](#external-library-depedency-configuration-options)
- [External Library Dependency Configuration Options](#external-library-dependency-configuration-options)
- [`libcheck`](#libcheck)
- [`bzip2`](#bzip2)
- [`zlib`](#zlib)
Expand Down Expand Up @@ -225,7 +225,7 @@ your build will depend on which type of generator you're using:

> _Tip_: `RelWithDebInfo` is probably the best option for open source projects.
> It will have the speed optimizations you need. And, if a crash occurs, the
> crash backtrace you obtain with with a debugger will significantly help in
> crash backtrace you obtain with a debugger will significantly help in
> identifying the bug.

For multi-config generators, you _will_ also need to specify the config when
Expand Down Expand Up @@ -292,22 +292,22 @@ sudo cmake --build . --target install
```

ClamAV has a couple other important paths you can configure. At this time,
these are only configureable through the `clamd.conf` application config file:
these are only configurable through the `clamd.conf` application config file:

- `LocalSocket`: You may configure ClamD to listen on a TCP socket or on a
"local" socket (a Unix socket). A local socket is probably best, for safety.
But that means you'll need to select a path for the local socket. The sample
configu sugegsts using the `/tmp` directory, but you may wish to select
config suggests using the `/tmp` directory, but you may wish to select
a directory like `/var/run/clamav`.

- `TemporaryDirectory`: ClamAV creates a lot of temp files when scanning.
By default, ClamD and ClamScan will use the system's default temp directory,
which is typically `/tmp` or `/var/tmp`. But it may be best to give ClamAV
it's own directory. Maybe `/var/lib/clamav-tmp`.
its own directory. Maybe `/var/lib/clamav-tmp`.

### Running the Public Test Suite

The option to build so that you can run run the tests is enabled by default.
The option to build so that you can run the tests is enabled by default.
It requires that you provide `python3` and `libcheck`.

If you're building with `ENABLE_LIBCLAMAV_ONLY=ON` or `ENABLE_APP=OFF`, then
Expand Down Expand Up @@ -397,7 +397,7 @@ The following is a complete list of CMake options unique to configuring ClamAV:

_Default: `ON`_

- `DO_NOT_SET_RPATH`: By default RPATH is set in executeables resulting using
- `DO_NOT_SET_RPATH`: By default RPATH is set in executables resulting using
paths set at build time instead of using system defaults. By setting this
`ON` system defaults are used.

Expand Down Expand Up @@ -527,7 +527,7 @@ The following is a complete list of CMake options unique to configuring ClamAV:

_Default: not set_

## External Library Depedency Configuration Options
## External Library Dependency Configuration Options

The CMake tooling is good about finding installed dependencies on POSIX systems
provided that you have pkg-config installed, and the dependencies are installed
Expand Down Expand Up @@ -671,7 +671,7 @@ ClamAV has two bytecode runtimes:
instructions one by one.

With the interpreter, signature database (re)loads are faster, but execution
time for scans that make use of the bytecode sigantures is slower.
time for scans that make use of the bytecode signatures is slower.

2. **LLVM**: LLVM can be used to Just-in-Time (JIT) compile bytecode signatures
at database load time.
Expand Down
32 changes: 16 additions & 16 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ ClamAV 0.105.0 includes the following improvements and changes.
Using LLVM JIT for the bytecode runtime may improve scan performance over the
built-in bytecode interpreter runtime, which is the default.
If you wish to build using LLVM, you must obtain a complete build of
the LLVM libraries including the devopment headers and static libraries.
the LLVM libraries including the development headers and static libraries.

There are some known issues both compiling and running the test suite with
some LLVM installations. We are working to further stabilize LLVM bytecode
Expand Down Expand Up @@ -1699,7 +1699,7 @@ ClamAV 0.103.2 is a security patch release with the following fixes:
For more details, see:
https://blog.clamav.net/2020/06/the-future-of-clamav-safebrowsing.html

> _Tip_: If creating and hosting your own `safebrowing.gdb` database, you can
> _Tip_: If creating and hosting your own `safebrowsing.gdb` database, you can
> use the `DatabaseCustomURL` option in `freshclam.conf` to download it.

- FreshClam: Improved HTTP 304, 403, & 429 handling.
Expand Down Expand Up @@ -1823,7 +1823,7 @@ ClamAV 0.103.0 includes the following improvements and changes.
a community effort.

Non-blocking database reloads are now the default behavior. Some systems that
are more contrained on RAM may need to disable non-blocking reloads as it will
are more constrained on RAM may need to disable non-blocking reloads as it will
temporarily consume 2x as much memory. For this purpose we have added a new
clamd config option `ConcurrentDatabaseReload` which may be set to `no`.

Expand All @@ -1842,7 +1842,7 @@ ClamAV 0.103.0 includes the following improvements and changes.

- The DLP module has been enhanced with additional credit card ranges and a new
engine option which allows ClamAV to alert only on credit cards (and not, for
instance, gift cards) when scannning with the DLP module. This feature
instance, gift cards) when scanning with the DLP module. This feature
enhancement was made by John Schember, with input from Alexander Sulfrian.

- Support for Adobe Reader X PDF encryption, an overhaul of PNG scanning to
Expand Down Expand Up @@ -1903,8 +1903,8 @@ ClamAV 0.103.0 includes the following improvements and changes.
`sigtool` is separate from the one used for scanning and will still need to be
updated or replaced in the future.

- Improvements to the layout and legitibility of temp files created during a
scan. Improvements to legitibility and content of the metadata JSON generated
- Improvements to the layout and legibility of temp files created during a
scan. Improvements to legibility and content of the metadata JSON generated
during a scan.

To review the scan temp files and metadata JSON, run:
Expand Down Expand Up @@ -2104,7 +2104,7 @@ ClamAV 0.102.2 is a bug patch release to address the following issues.

- Re-applied a fix to alleviate file access issues when scanning RAR files in
downstream projects that use libclamav where the scanning engine is operating
in a low-privelege process. This bug was originally fixed in 0.101.2 and the
in a low-privilege process. This bug was originally fixed in 0.101.2 and the
fix was mistakenly omitted from 0.102.0.

- Fixed an issue wherein freshclam failed to update if the database version
Expand All @@ -2117,7 +2117,7 @@ ClamAV 0.102.2 is a bug patch release to address the following issues.
slower internet connections.

- Correctly display number of kilobytes (KiB) in progress bar and reduced the
size of the progress bar to accomodate 80-char width terminals.
size of the progress bar to accommodate 80-char width terminals.

- Fixed an issue where running freshclam manually causes a daemonized freshclam
process to fail when it updates because the manual instance deletes the
Expand Down Expand Up @@ -2686,7 +2686,7 @@ infrastructure that's so easy to take for granted.
CI server.

Similar to the feature testing framework, our build acceptance framework
tests accross 64bit and 32bit (where available):
tests across 64bit and 32bit (where available):
- macOS 10 (.10, .11, .13)
- Windows (7, 10)
- Debian (8, 9), Ubuntu (16.04, 18.04), CentOS (6, 7)
Expand Down Expand Up @@ -3641,7 +3641,7 @@ version:
(clamd: ExcludePUA, IncludePUA; clamscan: --exclude-pua, --include-pua)

- Data Loss Prevention (DLP): This version includes a new module that, when
enabled, scans data for the inclusion of US formated Social Security
enabled, scans data for the inclusion of US formatted Social Security
Numbers and credit card numbers (clamd: StructuredDataDetection,
clamscan: --detect-structured; additional fine-tuning options are available)

Expand Down Expand Up @@ -4272,7 +4272,7 @@ Important note to clamdwatch users: please upgrade to the latest version
- freshclam:
- the DNS mode is now enabled by default (no need for DNSDatabaseInfo in
freshclam.conf)
- --no-dns uses a If-Modified-Since method instead of a range GET
- --no-dns uses an If-Modified-Since method instead of a range GET
- added support for AllowSupplementaryGroups

- sigtool:
Expand Down Expand Up @@ -5027,7 +5027,7 @@ configure:
Tru64 support (thanks to Christophe Varoqui <[email protected]>)

- documentation:
- included how-to in Portugese by Alexandre de Jesus Marcolino
- included how-to in Portuguese by Alexandre de Jesus Marcolino
- clamdoc.pdf and system manual updates

Many thanks to Luca 'NERvOus' Gibelli from ElektraPro for his support,
Expand Down Expand Up @@ -5086,7 +5086,7 @@ This release has removed the limit for a file name length in clamscan. Some
viruses (eg. W32/Yaha.E) are using very long file names, and they were
ignored in mbox mode. Users of AMaViS-ng and other wrappers were not
vulnerable to this problem, because that programs don't use original
attachement file names.
attachment file names.

- clamscan:
- removed limit for a file name length (thanks to Odhiambo Washington
Expand Down Expand Up @@ -5237,9 +5237,9 @@ Documentation:
update viruses.db2 and supports OpenAntiVirus.org site only (the last
update of the OAV database was 1 July !). Nicholas Chua <[email protected]>
has generated over 200 new signatures, ClamAV's database is also frequently
updated (expecially when new wild virus/worm appears, eg. W32/BugBear.A).
updated (especially when new wild virus/worm appears, eg. W32/BugBear.A).

This software is still in developement (new software == new bugs), however
This software is still in development (new software == new bugs), however
clamscan should be very stable. You shouldn't use clamd/clamuko (well, clamd is
stable, clamuko isn't) on production systems, yet. Please wait for 0.51 at
least ;). ClamAV 0.50 was tested on Linux and Solaris and should work fine.
Expand Down Expand Up @@ -5309,7 +5309,7 @@ There are binary packages for AIX available. Please check the documentation.
## 0.22

This release fixes bug with scanning archives in unaccessible directories with
*superuser* priviledges (after dropping priviledges scanner wasn't able to
*superuser* privileges (after dropping privileges scanner wasn't able to
access the archive, although the same archive was accessible), thanks
for Sergei Pronin <[email protected]> for the problem description. Now all
archives unaccessible directly by the clamav user are copied (with a respect to
Expand Down
4 changes: 2 additions & 2 deletions README.Docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ To do so, you have two options:
```

When doing this, it's best to use the `<version>_base` image tags so as to
save on bandwith. E.g.:
save on bandwidth. E.g.:
```bash
docker run -it --rm \
--name "clam_container_01" \
Expand Down Expand Up @@ -381,7 +381,7 @@ The healthcheck results can be viewed with `docker inspect`.

When the container starts up, the health-check also starts up. As loading the
virus database can take some time, there is a delay configured in the
`Dockerfile` to try and avoid this race condition.
`Dockerfile` to try to avoid this race condition.

## Performance

Expand Down
2 changes: 1 addition & 1 deletion clamav-config.h.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@
/* Define if dlsym() requires a leading underscore in symbol names. */
#cmakedefine NEED_USCORE 1

/* bzip funtions do not have bz2 prefix */
/* bzip functions do not have bz2 prefix */
#cmakedefine NOBZ2PREFIX 1

/* "no fd_set" */
Expand Down
4 changes: 2 additions & 2 deletions clamav-milter/netcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ static int resolve(char *name, uint32_t *family, uint32_t *host)
struct addrinfo hints, *res;

if (!name) {
/* l->basehost[0] = l->basehost[1] = l->basehost[2] = l->basehost[3] = 0; DONT BOTHER*/
/* l->basehost[0] = l->basehost[1] = l->basehost[2] = l->basehost[3] = 0; DON'T BOTHER*/
*family = NON_SMTP;
return 0;
}
Expand All @@ -370,7 +370,7 @@ static int resolve(char *name, uint32_t *family, uint32_t *host)

*family = INET_HOST;
host[0] = htonl(sa->sin_addr.s_addr);
/* host[1] = host[2] = host[3] = 0; DONT BOTHER*/
/* host[1] = host[2] = host[3] = 0; DON'T BOTHER*/
} else if (res->ai_addrlen == sizeof(struct sockaddr_in6) && res->ai_addr->sa_family == AF_INET6) {
struct sockaddr_in6 *sa = (struct sockaddr_in6 *)res->ai_addr;
unsigned int i, j;
Expand Down
2 changes: 1 addition & 1 deletion clamd/clamd_others.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ read_fd_data(struct fd_buf *buf)
close(buf->recvfd);
}
buf->recvfd = *(int *)CMSG_DATA(cmsg);
logg(LOGG_DEBUG_NV, "Receveived a file descriptor: %d\n", buf->recvfd);
logg(LOGG_DEBUG_NV, "Received a file descriptor: %d\n", buf->recvfd);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion clamd/scanner.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ cl_error_t scanfd(
goto done;
}

/* Try and get the real filename, for logging purposes */
/* Try to get the real filename, for logging purposes */
if (!stream) {
if (CL_SUCCESS != cli_get_filepath_from_filedesc(fd, &filepath)) {
logg(LOGG_DEBUG, "%s: Unable to determine the filepath given the file descriptor.\n", fdstr);
Expand Down
6 changes: 3 additions & 3 deletions clamd/server-th.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ static cl_error_t reload_db(struct cl_engine **engine, unsigned int dboptions, c
goto done;

default:
logg(LOGG_ERROR, "An unknown error occured when waiting for the database reload thread: %d\n", join_ret);
logg(LOGG_ERROR, "An unknown error occurred when waiting for the database reload thread: %d\n", join_ret);
goto done;
}
}
Expand Down Expand Up @@ -926,7 +926,7 @@ int recvloop(int *socketds, unsigned nsockets, struct cl_engine *engine, unsigne
memset(&sigact, 0, sizeof(struct sigaction));
#endif

/* Initalize scan options struct */
/* Initialize scan options struct */
memset(&options, 0, sizeof(struct cl_scan_options));

/* set up limits */
Expand Down Expand Up @@ -1216,7 +1216,7 @@ int recvloop(int *socketds, unsigned nsockets, struct cl_engine *engine, unsigne

if (optget(opts, "AlertBrokenMedia")->enabled) {
options.heuristic |= CL_SCAN_HEURISTIC_BROKEN_MEDIA;
logg(LOGG_INFO, "Media (Graphics) Format Validatation enabled\n");
logg(LOGG_INFO, "Media (Graphics) Format Validation enabled\n");
}

if (optget(opts, "ScanMail")->enabled) {
Expand Down
2 changes: 1 addition & 1 deletion clamdscan/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ static int isremote(const struct optstruct *opts)
}

/* pings clamd at the specified interval the number of time specified
* return 0 on a succesful connection, 1 upon timeout, -1 on error */
* return 0 on a successful connection, 1 upon timeout, -1 on error */
int16_t ping_clamd(const struct optstruct *opts)
{

Expand Down
2 changes: 1 addition & 1 deletion clamdscan/proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ static cl_error_t parallel_callback(STATBUF *sb, char *filename, const char *pat
cid->next = c->ids;
c->ids = cid;

/* Give up ownership of the filename to the client parralel scan ID list */
/* Give up ownership of the filename to the client parallel scan ID list */
filename = NULL;

status = CL_SUCCESS;
Expand Down
2 changes: 1 addition & 1 deletion clamdtop/clamdtop.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ static void init_ncurses(int num_clamd, int use_default)
keypad(stdscr, TRUE); /* enable keyboard mapping */
nonl(); /* tell curses not to do NL->CR/NL on output */
halfdelay(UPDATE_INTERVAL * 10); /* timeout of 2s when waiting for input*/
noecho(); /* dont echo input */
noecho(); /* don't echo input */
curs_set(0); /* turn off cursor */
if (use_default)
use_default_colors();
Expand Down
8 changes: 4 additions & 4 deletions clamonacc/c-thread-pool/thpool.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ void thpool_wait(thpool_* thpool_p){

/* Destroy the threadpool */
void thpool_destroy(thpool_* thpool_p){
/* No need to destory if it's NULL */
/* No need to destroy if it's NULL */
if (thpool_p == NULL) return ;

volatile int threads_total = thpool_p->num_threads_alive;
Expand Down Expand Up @@ -256,7 +256,7 @@ void thpool_pause(thpool_* thpool_p) {
/* Resume all threads in threadpool */
void thpool_resume(thpool_* thpool_p) {
// resuming a single threadpool hasn't been
// implemented yet, meanwhile this supresses
// implemented yet, meanwhile this suppresses
// the warnings
(void)thpool_p;

Expand Down Expand Up @@ -310,15 +310,15 @@ static void thread_hold(int sig_id) {

/* What each thread is doing
*
* In principle this is an endless loop. The only time this loop gets interuppted is once
* In principle this is an endless loop. The only time this loop gets interrupted is once
* thpool_destroy() is invoked or the program exits.
*
* @param thread thread that will run this function
* @return nothing
*/
static void* thread_do(struct thread* thread_p){

/* Set thread name for profiling and debuging */
/* Set thread name for profiling and debugging */
char thread_name[32] = {0};
snprintf(thread_name, 32, "thread-pool-%d", thread_p->id);

Expand Down
4 changes: 2 additions & 2 deletions clamonacc/client/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ int onas_check_remote(struct onas_context **ctx, cl_error_t *err)
}

/* pings clamd at the specified interval the number of time specified
* return 0 on a succesful connection, 1 upon timeout, -1 on error */
* return 0 on a successful connection, 1 upon timeout, -1 on error */
int16_t onas_ping_clamd(struct onas_context **ctx)
{

Expand Down Expand Up @@ -525,7 +525,7 @@ int onas_get_clamd_version(struct onas_context **ctx)
* @param fd the file descriptor for the file to be scanned, often (but not always) this is held by fanotify
* @param timeout time in ms to allow curl before timing out connection attempts
* @param sb variable to store and pass all of our stat info on the file so we don't have to access it multiple times (triggering multiple events)
* @param infected return variable indincating whether daemon returned with an infected verdict or not
* @param infected return variable indicating whether daemon returned with an infected verdict or not
* @param err return variable passed to the daemon protocol interface indicating how many things went wrong in the course of scanning
* @param ret_code return variable passed to the daemon protocol interface indicating last known issue or success
*/
Expand Down
Loading
Loading