Vulnerable: version 2.1nb1 is affected by 12 known vulnerabilities. See below.
lang/picoc 2.1nb1 NetBSD
C interpreter
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- modified-bsd
- Categories
- lang
- Package size
- 41.0 KiB, 125.1 KiB installed
Description
PicoC is a very small C interpreter for scripting. It was originally written as the script language for a UAV's on-board flight system. It's also very suitable for other robotic, embedded and non-embedded applications.
The core C source code is around 4000 lines of code. It's not intended to be a complete implementation of ISO C but it has all the essentials. When compiled it only takes a few k of code space and is also very sparing of data space. This means it can work well in small embedded devices. It's also a fun example of how to create a very small language implementation while still keeping the code readable.
picoc has been tested on x86-32, x86-64, powerpc, arm, ultrasparc, HP-PA and blackfin processors and is easy to port to new targets.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | lang/picoc | 2.1nb1 |
| FreeBSD | lang/picoc | 2.1_2 |
| HardenedBSD | lang/picoc | 2.1_2 |
| GhostBSD | lang/picoc | 2.1_2 |
Install
Binary package:
pkgin install picoc
From pkgsrc:
cd /usr/pkgsrc/lang/picoc && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 2.1nb1 |
| NetBSD 10.1 aarch64 | 2.1nb1 |
| SmartOS / illumos x86_64 | - |
| macOS 15 arm64 | - |
Dependencies
No port depends on this one.
Known vulnerabilities 12
- picoc: heap-overflow (CVE-2019-16277)
- picoc: null-pointer-dereference (CVE-2022-34556)
- picoc: heap-buffer-overflow (CVE-2022-44312)
- picoc: heap-buffer-overflow (CVE-2022-44313)
- picoc: heap-buffer-overflow (CVE-2022-44314)
- picoc: heap-buffer-overflow (CVE-2022-44315)
- picoc: heap-buffer-overflow (CVE-2022-44316)
- picoc: heap-buffer-overflow (CVE-2022-44317)
- picoc: heap-buffer-overflow (CVE-2022-44318)
- picoc: heap-buffer-overflow (CVE-2022-44319)
- picoc: heap-buffer-overflow (CVE-2022-44320)
- picoc: heap-buffer-overflow (CVE-2022-44321)