Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dbffile

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dbffile - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

11

dist/dbf-file.js

@@ -300,7 +300,14 @@ "use strict";

if (dbf._version === 0x83) {
// dBase III memos don't have a length header - they are terminated with 0x1A1A.
// dBase III memos don't have a length header, rather they are terminated with two
// 0x1A bytes. However when FoxPro is used to modify a dBase III file, it writes
// only a single 0x1A byte to mark the end of a memo. Some files therefore have both
// markers (ie 0x1A1A and 0x1A) present in the same file for different records. This
// reader therefore only looks for a single 0x1A byte to mark the end of the memo,
// so that it picks up both dBase III and FoxPro variations. (Previously this code
// only checked for 0x1A1A in 0x83 files, and read past the end of the memo file
// for some user-submitted test files because it missed single 0x1A markers).
// If the terminator is not found in the current block-sized buffer, then the memo
// value must be larger than a single block size. In that case, we continue the loop
// and read the next block-sized chunk, and so on until the terminator is found.
let eos = memoBuf.indexOf('\x1A\x1A');
let eos = memoBuf.indexOf('\x1A');
value += iconv.decode(memoBuf.slice(0, eos === -1 ? memoBlockSize : eos), encoding);

@@ -307,0 +314,0 @@ if (eos !== -1)

@@ -0,0 +0,0 @@ For information about the dBase III (.dbf) file format, see:

2

package.json
{
"name": "dbffile",
"version": "1.4.2",
"version": "1.4.3",
"description": "Read and write .dbf (dBase III & Visual FoxPro) files in Node.js",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -0,0 +0,0 @@ # DBFFile

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc