~ubuntu-branches/ubuntu/breezy/koffice/breezy-security

« back to all changes in this revision

Viewing changes to kexi/3rdparty/kexisql/tool/opcodes.sh

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-10-11 14:49:50 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051011144950-lwpngbifzp8nk0ds
Tags: 1:1.4.1-0ubuntu7
* SECURITY UPDATE: fix heap based buffer overflow in the RTF importer of KWord
* Opening specially crafted RTF files in KWord can cause
  execution of abitrary code.
* Add kubuntu_01_rtfimport_heap_overflow.diff
* References:
  CAN-2005-2971
  CESA-2005-005
  http://www.koffice.org/security/advisory-20051011-1.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# this script has to be run after the version
 
4
# changed
 
5
 
 
6
#generate c file:
 
7
echo '/* Automatically generated file.  Do not edit */' >../src/opcodes.c
 
8
echo 'char *sqliteOpcodeNames[] = { "???", ' >>../src/opcodes.c
 
9
grep '^case OP_' ../src/vdbe.c | sed -e 's/^.*OP_/  "/' -e 's/:.*/", /' >>../src/opcodes.c
 
10
echo '};' >>../src/opcodes.c
 
11
 
 
12
#generate header file:
 
13
echo '/* Automatically generated file.  Do not edit */' >../src/opcodes.h
 
14
grep '^case OP_' ../src/vdbe.c | sed -e 's/case //' -e 's/:[ {]*//' | awk '{printf "#define %-30s %3d\n", $$2, ++cnt}' >>../src/opcodes.h