[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

checking to see if a file include scheme

From: Graham Percival
Subject: checking to see if a file include scheme
Date: Tue, 23 Jan 2007 11:58:24 -0800
User-agent: Thunderbird (Macintosh/20061207)

As a security measure, I'd like to have a script that checks if a lilypond file contains any scheme. Is there any better way than searchign for "#(define" ?

I'm not worried about a few false positives (if any non-scheme .ly file just happened to have "#(define" in the text somewhere), but could a malicious person add whitespace and have "#( define" ? If so, is there a way to search for such a whitespace-including string in python?

... and is there any other way of including scheme in a file?

This isn't a big deal; the LSR editors shouldn't allow any scheme in these files, and I'll be checking the git diffs before committing to make sure there's no scheme... but it would be nice if there was also an automatic script to check for this.

- Graham

reply via email to

[Prev in Thread] Current Thread [Next in Thread]