Commit Graph
136 Commits
Author SHA1 Message Date
Victor M. Alvarez 84b0e3cc0e Bump version number to 4.5.8. 2026-07-28 09:04:21 +02:00
Victor M. Alvarez 2aee7f4068 Try to fix build issue in macOS. 2026-06-02 10:34:50 +02:00
Victor M. Alvarez 807ee93b9c Try to fix build error in macOS. 2026-06-02 10:26:52 +02:00
Victor M. Alvarez d72b85f09f Bump version number to 4.5.7. 2026-06-01 12:47:25 +02:00
Victor M. Alvarez 7488ec7b42 Bump version number to 4.5.6. 2026-05-07 16:47:44 +02:00
Victor M. Alvarez f44a8958e8 Bump version number to 4.5.5. 2025-10-30 10:58:07 +01:00
Victor M. Alvarez 7ff39042be bump version number to 4.5.4. 2025-05-26 18:06:13 +02:00
Victor M. Alvarez 6c8accd96a bump version number to 4.5.3. 2025-05-26 18:02:53 +02:00
Victor M. Alvarez bae530c7f0 Remove Bazel as a build system. (#2144)
Bazel was the build system used by VirusTotal. Now that VirusTotal has moved to YARA-X, maintaining the Bazel infrastructure working is painful, specially with the backward incompatible changes introduced in recent versions of Bazel.
2025-04-09 20:44:51 +02:00
gremat 53642c3fcb feat: support mimalloc (#2135) 2025-02-11 13:27:14 +01:00
Victor M. Alvarez 1628e61f8e Bump version to 4.5.2 2024-09-10 10:44:46 +02:00
Victor M. Alvarez 0e5b6bb966 Bump version to 4.5.1 2024-05-25 12:23:51 +02:00
Victor M. Alvarez 833a580430 Fix issue #2050.
See also PR #2048.
2024-04-07 17:56:43 +02:00
Victor M. Alvarez 8fa55cde4c Bump version number to 4.5.0 2024-02-13 12:33:22 +01:00
Hilko Bengen adeb203c84 configure: Recognize msys as a Windows platform (#1984) 2023-10-10 21:42:02 +02:00
Victor M. Alvarez 9274e1266c Bump version to 4.4.0. 2023-08-23 12:38:28 +02:00
Victor M. Alvarez 973402ae6d Add workflow for running tests in big endian platform. 2023-02-22 12:46:16 +01:00
Victor M. Alvarez 943455ae0b Bump version to 4.3.0. 2022-12-30 11:29:53 +01:00
Hilko Bengen 7ecc252797 hash: Use OpenSSL's evp(7) series of functions (#1846)
As of OpenSSL 3.0, {MD5,SHA1,SHA256}_{Init,Update,Final} are
deprecated. Stop using them.
2022-12-29 11:56:11 +01:00
Hilko Bengen 1b2989eee3 Merge Makefile.am into a single file (#1811)
Benefits
- Changes that result in a rebuild of libyara will also cause test
  programs to be rebuilt
- Avoid repeating flag definitions
2022-12-19 20:31:00 +01:00
Jose Toro fd8921c2cd Missing version bump (#1741) 2022-06-29 09:36:58 +02:00
HoundTheandVictor M. Alvarez b9cd46df15 Process Authenticode signatures using authenticode-parser (#1623)
* Import authenticode-parser into Yara. Rewrite PE signature processing using the authenticode-parser. Update bazel OpenSSL dependency to 1.1.1 from 1.1.0

* Forgot to include structs.c

* Add Avast to authors and myself to contributors

* Set forgotten algorithm_oid

* Fix incorrect indentation

* Fix race condition when initializing openssl objects

* Don't malloc ByteArray with length 0

* Auth. parser update - bug fixes, openssl3.0 support

* Update authenticode parser

Co-authored-by: Victor M. Alvarez <[email protected]>
2022-06-20 12:47:36 +02:00
HoundThe 19ac2efeb8 Integrate tlshc library, calculate telfhash and import hash in ELF module (#1624)
* Add simple_str string implementation

* Integrate tlshc library, calculate telfhash and import hash in the ELF module.

* Hide usage of MD5 into #ifdef crypto
2022-06-20 12:25:33 +02:00
Victor M. Alvarez 3484fcb60b Fix multiple memory alignment issues. (#1724)
The x86 platform is very forgiving when you access a 16-bits variable stored at a memory address that is not aligned to a 2-bytes boundary, or a 32-bits variable that is not aligned to 4-bytes boundary, and so on. Other platforms, like ARM or Sparc are not that flexible, and accessing a value by dereferencing a pointer that is not aligned to the size of the value causes a processor fault.

This fixes multiple issues caused by pointers that are not aligned to the size of the value.

Fixes: #1700
2022-06-07 09:37:27 +02:00
Wesley Shields dd27d6e185 Fix issue with dotnet build. (#1642)
If a user specifies --enable-dotnet the build system will (currently) disable
the dotnet module, which is most certainly not what they want. This is likely to
cause unexpected issues for build systems (like brew, other third party
ports/package systems, and internal builds at $job) which have specified
--enable-dotnet automatically for a while now.

This diff fixes it by making --enable-dotnet print a warning message that this
option is no longer required, but it will still build the module.

The default behavior of building the module if neither --enable-dotnet or
--disable-dotnet is set is still maintained, along with honoring
--disable-dotnet.

Building with --enable-dotnet prints a warning and still builds the module:

```
wxs@wxs-mbp yara % ./configure --enable-dotnet > /dev/null
configure: WARNING:
*****************************************************************
  The dotnet module is enabled by default now. No need to specify
  --enable-dotnet. To disable this module please use
  --disable-dotnet.
*****************************************************************

wxs@wxs-mbp yara % make clean >/dev/null
wxs@wxs-mbp yara % make | grep dotnet
  CC       modules/dotnet/dotnet.lo
wxs@wxs-mbp yara %
```

Building with --disable-dotnet does not build the module:

```
wxs@wxs-mbp yara % ./configure --disable-dotnet > /dev/null
wxs@wxs-mbp yara % make clean >/dev/null
wxs@wxs-mbp yara % make | grep dotnet
wxs@wxs-mbp yara %
```

And finally, building with neither option specified builds it by default:

```
wxs@wxs-mbp yara % ./configure > /dev/null
wxs@wxs-mbp yara % make clean >/dev/null
wxs@wxs-mbp yara % make | grep dotnet
  CC       modules/dotnet/dotnet.lo
wxs@wxs-mbp yara %
```
2022-02-01 09:49:48 +01:00
Victor M. Alvarez 8b57df16c4 Enable "dotnet" module by default.
Now you can use the --disable-dotnet option for explicitly disabling this module.
2022-01-13 16:08:23 +01:00
Victor M. Alvarez 09d095b1c8 Bump version number to 4.2.0. 2021-10-28 11:29:09 +02:00
Wesley Shields 37bee583c2 Expose YR_DEBUG_VERBOSITY in configure script. (#1542)
Add a --with-debug-verbose option to the configure script which takes a number
greater than 0 as an argument. This gives us the flexibility to make verbosity
of this useful debugging information greater than it's current maximum (2)
without needing to modify the configure script.

Currently the maximum is 2, which gets you a lot of useful runtime debugging
information. A value of 1 is only used in tests. It may be worth it to consider
reworking this system so the numbers describe how much information you want.
For example, 1 could just be function entry and exit, 2 could add arguments to
it. I'll leave changing that up to a future diff if it is desired.

While here, fix a warning in the scanner from using an incorrect format string:

scan.c:644:7: warning: format specifies type 'long long' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
      match_offset,
      ^~~~~~~~~~~~~
./include/yara/globals.h:100:29: note: expanded from macro 'YR_DEBUG_FPRINTF'
    fprintf(STREAM, FORMAT, __VA_ARGS__);                      \
                    ~~~~~~  ^~~~~~~~~~~
1 warning generated.
2021-08-23 09:50:05 +02:00
Kirill A. Korinsky a2f7f45f76 Escape PKG_CHECK_MODULES (#1540)
* Escape `PKG_CHECK_MODULES`

This small changes allows to fix an issues https://github.com/avast/retdec/issues/990 and probably https://github.com/VirusTotal/yara/issues/1171

The root cause of this issues is different shell which is used. Some simple shell like dsh I belive can't survive on this line without escaping, some modern like bash easly can.

Thus at § 3.5 at https://autotools.io/pkgconfig/pkg_check_modules.html it is cleare suggested to escape by `[...]`.

* Escape `protobuf-c`
2021-08-17 09:39:19 +02:00
Victor M. Alvarez f8a4f14d7a Bump version number to 4.1.0. 2021-03-11 11:27:39 +01:00
Hilko Bengen 9577ffcbea Add math library to pkg-config libs.private, not requires.private (#1408)
As intended and described (but mistyped) in a94f6deb1d
2020-12-01 21:40:50 +01:00
Hilko Bengen c454e983a1 Add more libs.private entries 2020-11-07 12:37:54 +01:00
Hilko Bengen a94f6deb1d Add m (math) library to libs.private (pkg-config) if it is used
This should get rid of "undefined reference to `log2'" errors when
using pkg-config and using the static library.
2020-11-07 12:37:54 +01:00
Simon Hardy-Francis 242f9b43db Code coverage build (#1374)
* Add gcov code coverage configure option
2020-10-08 11:52:55 +02:00
Victor M. Alvarez 1595e53ea6 Bump version to 4.0.2 2020-06-26 09:17:35 +02:00
Victor M. Alvarez b5378bfb3d Bump version number to 4.0.1 2020-05-15 10:43:21 +02:00
Victor M. Alvarez ba313b4833 Bump version number to 4.0.0. 2020-03-26 13:08:43 +01:00
Victor M. Alvarez 0043a4cfdd Rename PROFILING_ENABLED to YR_PROFILING_ENABLED and implement yr_scanner_get_profiling_info. 2020-03-16 17:44:44 +01:00
Victor M. Alvarez 0e52686008 Add tests for a module automatically generated from a Protocol Buffer. (#1162) 2019-11-13 17:04:24 +01:00
Victor M. Alvarez 913e2f3b9a Minor changes in make files. 2019-11-12 16:20:27 +01:00
Victor M. Alvarez b9f925bb4e Bump version to 3.11 2019-10-10 13:10:50 +02:00
Victor M. Alvarez 560e9af3b7 Revert "Add dependency on zlib when building with libmagic (#1084)"
This reverts commit 03f1bba109.
2019-08-12 09:50:31 +02:00
pwrdwnsys 305ba7afa4 fix detection of libraries for OpenBSD (#1083) 2019-06-27 15:45:31 +02:00
Marek Milkovič 03f1bba109 Add dependency on zlib when building with libmagic (#1084)
This fixes linking against static libmagic.
2019-06-27 15:44:54 +02:00
Victor M. Alvarez d9c966b6d5 Bump version to 3.10 2019-05-02 10:06:12 +02:00
Victor M. Alvarez d7fc754a5a Set version number to 3.9.0. 2019-02-22 12:00:27 +01:00
Victor M. Alvarez d1986a664a Set version number to 3.8.1 2018-08-14 12:21:29 +02:00
Victor M. Alvarez 4d167ecf96 Set version number to 3.8.0 2018-08-06 15:28:12 +02:00
Victor M. Alvarez f9a52f0ed4 Remove AC_PROG_LIBTOOL as it is deprecated and LT_INIT is enough.
Closes #491.
2018-08-02 08:40:02 +02:00
Victor M. Alvarez 8dd3f45abb If <stdbool.h> is not present, fallback to our own definition of "bool" type. 2018-07-30 11:32:34 +02:00