libsmi NEWS -- user visible changes
===================================

Version 0.6.0 (2026-11-18)
--------------------------

Build system and platforms

* Modernized autotools build system (autoconf >= 2.69, automake >= 1.13,
  libtool >= 2.4): no obsolete macros, no run-time configure checks (so
  cross compilation works), silent rules, parallel (make -jN) and
  out-of-tree builds, `make distcheck`, tar.gz and tar.xz release
  tarballs, new options --enable-warnings, --enable-werror and
  --enable-sanitizers. The non-standard options --with-cc and
  --with-cflags were removed; use CC=... and CFLAGS=... instead.
* The generated scanners and parsers are no longer kept in git, but are
  contained in the release tarballs (building a release does not need
  flex and bison).
* New CMake build system as an alternative, mainly for native Windows
  builds with Visual Studio; it installs a CMake package (libsmi::smi).
* Windows: builds with MSVC (CMake) and MinGW-w64 (autotools, also as a
  cross build). The installation is relocatable: modules and the global
  configuration file are searched relative to the library. The outdated
  nmake/Visual C++ 6.0 makefiles were removed.
* macOS: supported with autotools and CMake, Homebrew formula template
  in packaging/homebrew.
* Packaging: debian/ (Debian, Ubuntu), libsmi.spec (Fedora, RHEL and
  compatible distributions, openSUSE). The packages use the names and
  layout of the distributions' own libsmi packages and upgrade them in
  place (tested in CI). The packages built by the project have the
  package revision 0ibr1 (Debian, 0.6.0-0ibr1) or release 0.ibr1 (RPM),
  which sorts before the distributions' own packages of the same version.
* GitLab CI builds and tests on Ubuntu, Debian, Fedora, AlmaLinux and
  Alpine, with gcc and clang, with sanitizers, with CMake, and produces
  release tarballs, .deb and .rpm packages, static Linux binaries and
  Windows packages; optional native Windows and macOS jobs.
* Library interface version (libtool) 3:0:1: new YangDecl values were
  added, binary compatible with libsmi 0.5 (soname libsmi.so.2).
* Windows and macOS packages are cross-compiled in CI (MinGW-w64; zig cc
  for macOS arm64/x86_64/universal); the Windows package contains an
  MSVC import library (smi.lib) and is smoke-tested with Wine.

YANG

* YANG 1.1 (RFC 7950) support: yang-version 1.1, action, anydata,
  modifier, notifications and actions in data nodes, if-feature
  expressions and if-feature in enum/bit/identity/refine, multiple base
  statements, multiple defaults in leaf-lists, must in input/output/
  notification, require-instance for leafrefs, enum/bit restrictions,
  empty/leafref in unions, optional input/output, short-hand choice
  cases. YANG 1.1 constructs in YANG 1.0 modules are reported.
* Conformance with RFC 6020: revision-date in import/include (the old
  draft form `revision' is still accepted), description/reference in
  import/include, statements in any order where allowed, extension
  statements with substatements everywhere.
* Imports with a revision-date load module@revision.yang; a mismatch
  is reported (import-revision-mismatch).
* Many fixes in the semantic checks: prefixes in augment/refine/
  deviation paths are resolved in the right module (crash), augments in
  uses are no longer applied twice, all deviate statements of a
  deviation are applied, config inheritance into augments, several
  NULL dereferences and a double free.
* String scanning fixes: concatenation with '+', no newline inserted
  into concatenated single-quoted strings, comments ending in "**/".
* smidump -f yang: correct quoting of arguments, prints the new
  statements.
* New YangDecl values: YANG_DECL_ACTION, YANG_DECL_ANYDATA,
  YANG_DECL_MODIFIER, YANG_DECL_REVISION_DATE.

Modules

* All MIB, PIB and YANG modules were updated from their authoritative
  sources (RFC Editor, IANA) as of November 2026, see below. The new
  script scripts/update-modules.py automates future updates.
* Updated IANA MIB modules: IANA-ADDRESS-FAMILY-NUMBERS-MIB,
  IANA-BFD-TC-STD-MIB, IANA-CHARSET-MIB, IANA-GMPLS-TC-MIB,
  IANA-IPPM-METRICS-REGISTRY-MIB, IANA-MAU-MIB, IANA-PRINTER-MIB,
  IANA-RTPROTO-MIB, IANA-STORAGE-MEDIA-TYPE-MIB, IANAifType-MIB.
* New IANA MIB modules: IANA-ENERGY-RELATION-MIB, IANA-GBOND-TC-MIB,
  IANA-OLSRv2-LINK-METRIC-TYPE-MIB, IANA-SMF-MIB, IANAPowerStateSet-MIB.
* Updated IETF MIB modules: IPATM-IPMC-MIB (RFC 2417), IPV6-MIB,
  IPV6-ICMP-MIB, IPV6-TCP-MIB, IPV6-UDP-MIB (RFC 8096), ISCSI-MIB
  (RFC 7147), SNMP-TLS-TM-MIB (RFC 9456).
* New IETF MIB modules: BGP-MPLS-LAYER3-VPN-MULTICAST-MIB,
  ENERGY-OBJECT-CONTEXT-MIB, ENERGY-OBJECT-MIB, G9981-MIB, G9982-MIB,
  G9983-MIB, GBOND-MIB, IBM-6611-APPN-MIB, IP-TRAFFIC-FLOW-SECURITY-MIB,
  L2L3-VPN-MULTICAST-MIB, L2L3-VPN-MULTICAST-TC-MIB, MAP-E-MIB,
  MGMD-STD-MIB, MPLS-FRR-FACILITY-STD-MIB, MPLS-FRR-GENERAL-STD-MIB,
  MPLS-FRR-ONE2ONE-STD-MIB, NEMO-MIB, OLSRv2-MIB, PCE-PCEP-MIB,
  PIM-BSR-MIB, PKTC-IETF-EVENT-MIB, POWER-ATTRIBUTES-MIB,
  PW-ENET-STD-MIB, PW-MPLS-STD-MIB, RAQMON-RDS-MIB, SMF-MIB,
  SNMP-IEEE802-TM-MIB, SNMP-VACM-AAA-MIB, SYSLOG-MSG-MIB, SYSLOG-TC-MIB,
  T11-FC-SP-AUTHENTICATION-MIB, T11-FC-SP-POLICY-MIB, T11-FC-SP-SA-MIB,
  T11-FC-SP-TC-MIB, T11-FC-SP-ZONING-MIB, TPM-MIB, TRILL-OAM-MIB,
  VPLS-BGP-MIB, VPLS-GENERIC-MIB, VPLS-LDP-MIB.
  (TRILL-OAM-MIB imports IEEE 802.1 MIB modules which are not part of
  libsmi.)
* IPATM-IPMC-MIB: fixed the missing import of mib-2 (RFC 2417 bug).

Bug fixes

* Code analysis with gcc/clang warnings, the clang static analyzer and
  AddressSanitizer/UndefinedBehaviorSanitizer runs of all tools and
  output formats over all bundled modules (previously 39 crashes and
  about 2000 memory errors, now none). Fixed among others:
  - use-after-free in yangFreeData() and smi2yangLeafPath(), double free
    in copyModule() (YANG complex types), NULL dereferences in the YANG
    default case checks (crashes on choice statements),
  - YANG modules got lost from the module list when more than two were
    loaded, causing spurious "already defined" errors,
  - a dangling parser pointer after smiInit() made smidiff results
    depend on the compiler optimization level,
  - smiRenderValue(): endless loop and heap overflow for binary ('b')
    display hints, wrong octal rendering of 64 bit integers, crash for
    a NULL type,
  - heap overflow in display hint parsing (fortopat), static buffer
    overflows in the value and OID formatting of several smidump
    output drivers, crash of smidump -f corba on 38 IETF MIBs, NULL
    units in smidump -f scli,
  - crashes on incomplete configuration file lines and an empty SMIPATH,
    memory leaks in the path handling,
  - timegm() was implicitly declared (truncating time_t), several other
    missing prototypes, K&R style definitions; the sources now compile
    as C17 and C23 with gcc 13-15 and clang,
  - the SMIng parser (--enable-sming) did not compile any more,
  - pointer formatting (%p) in the snprintf replacement on 64 bit
    Windows,
  - smidump -f yang printed a stray "(null)" after extension statements.
* Fixes that change output:
  - smidump -f xsd: display hint patterns contain the display
    separators (they were never recorded), the digit count of n-octet
    decimal numbers no longer overflows, the last display hint
    specification repeats, invalid quantifiers are avoided, and
    decimal range facets of d-N hints are correct (sign, padding),
  - smidump -f cm: table boxes are as wide as their longest line,
  - smidump -f sizes: correct BER sizes for negative integers and
    -2^31, long form lengths, OCTET STRING/BITS tag and length octets,
  - smidump -f sming: OID default values print the value instead of
    "(null)" (or the type's default),
  - YANG: a presence container in the default case of a choice is no
    longer reported as mandatory, a non-presence container with
    mandatory descendants now is (RFC 7950 7.9.3),
  - SMIng: empty type descriptions are reported (operator precedence).
* Unchecked gmtime() results in all date formatting functions, wrong
  row check in the reorder/sparse table relationship detection (rea),
  the expansion state of YANG complex type instances overwrote their
  status, and several memory leaks.
* Crashes found by fuzzing (libFuzzer, see fuzz/): double free of the
  module name of implicit MODULE-COMPLIANCE/AGENT-CAPABILITIES imports,
  use-after-free when merging forward referenced objects, heap overflow
  in the computation of a module's common OID prefix, `Module.label' at
  a non-first OID position, NULL dereferences in the SMI scanner and
  parser and in the YANG import and prefix handling, freeing a constant
  for unresolved YANG complex-type extensions. The crashing inputs are
  regression tests (fuzz/regression/).
* smidump -f xml/xsd: the output is well-formed XML for all bundled
  modules (missing quotes of 64 bit range facets, duplicate namespace
  declarations, unclosed restrictions of 64 bit and float types,
  "<unknown>" as element/attribute text); 64 bit range facets were
  truncated on Windows.
* smidump -f cm/svg/sizes/xsd no longer crash for objects with
  unresolvable types (missing imports).
* smiUnpack() no longer prints debug output to stderr.
* smidump -f svg: heap overflows with descriptions containing many &, <
  or > characters (tooltip buffers of 2*strlen), a fixed size buffer for
  type tooltips and an off-by-one; regression test in
  xml-wellformed.test. The diagrams no longer link to the former CGI
  script mib2svg.cgi on www.ibr.cs.tu-bs.de; the new option
  --svg-link-url=URL creates such links when wanted. The SVG driver was
  written by Klaus Sperner.
* The cache program of the `cache' configuration directive was run by
  the shell with the unchecked module name (command injection, e.g. via
  smiLoadModule("X;cmd")); only plain module names are passed now.
* smicache: fetches from the new HTTPS location of the libsmi web site
  (smicache.php), no longer uses /tmp as default cache directory (now
  ~/.cache/libsmi), rejects path names as module names, and stores a
  module only after it has been fetched completely.
* Removed tools/mib2svg.cgi.in, the never installed CGI script of the old
  web site (CGI.pm, uploads in /tmp, served scripted SVG on the site's
  origin); the new web pages in www/ replace it.
* Manual pages show the configured directories instead of unexpanded
  variables such as ${prefix}; smidump(1) documents the yang and ietf
  formats.
* The openSUSE RPM exports yangIsTrueConf() (declared in yang.h).
* Syntax error messages are verbose again ("unexpected X, expecting Y").

Test suite

* Rewritten test harness: tests run in parallel, out of tree and under
  `make distcheck`; the 18 identical smidump test scripts were replaced
  by one shared implementation (test/common.sh). Nominal outputs can be
  updated with `make check LIBSMI_TEST_UPDATE=1`.
* Tests are sorted with LC_ALL=C, making results independent of the
  locale.
* New tests: api-test (C API), parser-yang.test (YANG diagnostics, was
  not run before), smistrip.test, modules.test (loads every bundled
  module and checks for crashes and regressions).
* The test suite is run in CI on all platforms.
* Fuzzing: libFuzzer harnesses for the SMI and YANG parsers in fuzz/
  (./configure --enable-fuzzing CC=clang); `make check' replays the seed
  corpus and the inputs that crashed libsmi (fuzz/regression/); the CI
  job test:fuzz runs the fuzzers on request (manually or RUN_FUZZ=1).

Deprecations and removals

* The SMIng parser (--enable-sming) and `smidump -f sming' are
  deprecated: they implement an outdated draft, not RFC 3780/3781, and
  will be removed in a future release. configure and CMake warn when
  SMIng is enabled.
* Removed the uncorrected draft versions pibs/tubs/*-orig of the TUBS
  PIB modules (the corrected modules remain).
* Removed the ChangeLog file; the complete history since 1998 is in git.
* Removed the outdated Windows makefiles (see above) and NOTES.

Documentation

* README converted to Markdown (README.md) and updated.
* Releases have fixed download URLs for the tarballs and an archive of
  all packages (also via releases/permalink/latest); debian/watch uses
  them.
* COPYING renamed to LICENSE (COPYING remains as a pointer); licensing
  information in REUSE format (REUSE.toml, LICENSES/).
* New project web pages with web tools in www/ (check, convert, compare,
  extract and draw modules in the browser; PHP backend; installed with
  `WWWDIR=... make install-www` into one directory), see www/README.md.
* New SECURITY.md and .editorconfig; README states the project status
  (not actively maintained, 0.6 is a one-time modernization).
* The old SMIng and SMI XML drafts moved to doc/historic/.
* smidump(1): the default output format is SMIv2, not SMIng.
* win/README.win rewritten for current Windows toolchains.
* libsmi.m4 modernized (no obsolete autoconf macros); the pkg-config
  file now also provides the module directories (mibdir, pibdir,
  yangdir variables).


Version 0.5.0 and earlier
-------------------------

The detailed history of all changes since 1998 (including the former
ChangeLog, which was generated from the Subversion history) is in the
git history: git log.
